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