Module: TmpRails

Defined in:
lib/generator_spec/helpers/configure_rails.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.rootObject

Returns the value of attribute root.



3
4
5
# File 'lib/generator_spec/helpers/configure_rails.rb', line 3

def root
  @root
end

Class Method Details

.root_dir(path, options = {}) ⇒ Object



5
6
7
# File 'lib/generator_spec/helpers/configure_rails.rb', line 5

def root_dir path, options = {}
  @root = options == :custom ? custom_root_dir(path) : default_root_dir(path)      
end