Module: RoSupport::RoFile
- Defined in:
- lib/ro_support/file.rb
Instance Method Summary collapse
Instance Method Details
#dir?(path) ⇒ Boolean
12 13 14 |
# File 'lib/ro_support/file.rb', line 12 def dir?(path) test(?d, path) end |
#file?(path) ⇒ Boolean
8 9 10 |
# File 'lib/ro_support/file.rb', line 8 def file?(path) test(?f, path) end |
#rb?(path) ⇒ Boolean
16 17 18 |
# File 'lib/ro_support/file.rb', line 16 def rb?(path) file?(path) and path[/\.rb$/] end |
#spec?(path) ⇒ Boolean
4 5 6 |
# File 'lib/ro_support/file.rb', line 4 def spec?(path) file?(path) and path[/_spec\.rb$/] end |