Module: Enumerable
- Defined in:
- lib/boxr.rb
Instance Method Summary collapse
Instance Method Details
#files ⇒ Object
28 29 30 |
# File 'lib/boxr.rb', line 28 def files self.select{|i| i.type == 'file'} end |
#folders ⇒ Object
32 33 34 |
# File 'lib/boxr.rb', line 32 def folders self.select{|i| i.type == 'folder'} end |
#web_links ⇒ Object
36 37 38 |
# File 'lib/boxr.rb', line 36 def web_links self.select{|i| i.type == 'web_link'} end |