Module: TmpRails

Defined in:
lib/rspec_for_generators/rails_spec_helper.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.rootObject

Returns the value of attribute root.



5
6
7
# File 'lib/rspec_for_generators/rails_spec_helper.rb', line 5

def root
  @root
end

Class Method Details

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



7
8
9
# File 'lib/rspec_for_generators/rails_spec_helper.rb', line 7

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