Class: Bugwatch::Tree

Inherits:
Object
  • Object
show all
Defined in:
lib/bugwatch/tree.rb

Defined Under Namespace

Classes: Content

Instance Method Summary collapse

Constructor Details

#initialize(grit = nil) ⇒ Tree

Returns a new instance of Tree.



37
38
39
# File 'lib/bugwatch/tree.rb', line 37

def initialize(grit=nil)
  @grit = grit
end

Instance Method Details

#/(filepath) ⇒ Object



41
42
43
# File 'lib/bugwatch/tree.rb', line 41

def /(filepath)
  @grit / filepath if @grit
end

#ruby_filesObject



45
46
47
# File 'lib/bugwatch/tree.rb', line 45

def ruby_files
  @files ||= get_ruby_files(@grit.contents)
end