Class: Bugwatch::Tree
- Inherits:
-
Object
- Object
- Bugwatch::Tree
- Defined in:
- lib/bugwatch/tree.rb
Defined Under Namespace
Classes: Content
Instance Method Summary collapse
- #/(filepath) ⇒ Object
-
#initialize(grit = nil) ⇒ Tree
constructor
A new instance of Tree.
- #ruby_files ⇒ Object
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_files ⇒ Object
45 46 47 |
# File 'lib/bugwatch/tree.rb', line 45 def ruby_files @files ||= get_ruby_files(@grit.contents) end |