Module: Enumerable

Defined in:
lib/boxr.rb

Instance Method Summary collapse

Instance Method Details

#filesObject



20
21
22
# File 'lib/boxr.rb', line 20

def files
  self.select{|i| i.type == 'file'}
end

#foldersObject



24
25
26
# File 'lib/boxr.rb', line 24

def folders
  self.select{|i| i.type == 'folder'}
end


28
29
30
# File 'lib/boxr.rb', line 28

def web_links
  self.select{|i| i.type == 'web_link'}
end