Module: Enumerable

Defined in:
lib/boxr.rb

Instance Method Summary collapse

Instance Method Details

#filesObject



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

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

#foldersObject



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

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


31
32
33
# File 'lib/boxr.rb', line 31

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