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