Module: Enumerable
- Defined in:
- lib/boxr.rb
Instance Method Summary collapse
Instance Method Details
#files ⇒ Object
20 21 22 |
# File 'lib/boxr.rb', line 20 def files self.select{|i| i.type == 'file'} end |
#folders ⇒ Object
24 25 26 |
# File 'lib/boxr.rb', line 24 def folders self.select{|i| i.type == 'folder'} end |
#web_links ⇒ Object
28 29 30 |
# File 'lib/boxr.rb', line 28 def web_links self.select{|i| i.type == 'web_link'} end |