Class: Thor::Tree::Writer

Inherits:
Thor
  • Object
show all
Includes:
Actions
Defined in:
lib/thor/tree/writer.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = [], options = {}, config = {}) ⇒ Writer

Returns a new instance of Writer.



12
13
14
15
# File 'lib/thor/tree/writer.rb', line 12

def initialize(args=[], options={}, config={})
  super
  Writer.root_path = Path(destination_root).expand
end

Class Method Details

.root_pathObject



9
# File 'lib/thor/tree/writer.rb', line 9

def root_path; @_destination_root; end

.root_path=(path) ⇒ Object

Destination root for class



8
# File 'lib/thor/tree/writer.rb', line 8

def root_path=(path); @_destination_root = path; end