Module: Enumerable

Defined in:
lib/boxr.rb

Instance Method Summary collapse

Instance Method Details

#filesObject



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

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

#foldersObject



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

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


36
37
38
# File 'lib/boxr.rb', line 36

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