Class: Fixturex::VimgrepTreeFormatter
- Inherits:
-
Object
- Object
- Fixturex::VimgrepTreeFormatter
- Defined in:
- lib/fixturex/vimgrep_tree_formatter.rb
Instance Method Summary collapse
-
#initialize(tree, stdout = $stdout) ⇒ VimgrepTreeFormatter
constructor
A new instance of VimgrepTreeFormatter.
- #print ⇒ Object
Constructor Details
#initialize(tree, stdout = $stdout) ⇒ VimgrepTreeFormatter
Returns a new instance of VimgrepTreeFormatter.
5 6 7 8 |
# File 'lib/fixturex/vimgrep_tree_formatter.rb', line 5 def initialize(tree, stdout = $stdout) @tree = tree @stdout = stdout end |
Instance Method Details
#print ⇒ Object
10 11 12 |
# File 'lib/fixturex/vimgrep_tree_formatter.rb', line 10 def print print_entry(@tree, '', file_address_lengths(@tree).max) end |