Module: TmpRails

Defined in:
lib/generator-spec/rails/configure.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/rails/configure.rb', line 3

def root
  @root
end

Class Method Details

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



5
6
7
# File 'lib/generator-spec/rails/configure.rb', line 5

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