Class: Adhearsion::Configuration::RailsConfiguration

Inherits:
AbstractConfiguration show all
Defined in:
lib/adhearsion/initializer/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConfigurationEntryPoint

#add_configuration_for

Constructor Details

#initialize(options) ⇒ RailsConfiguration

Returns a new instance of RailsConfiguration.



260
261
262
263
264
# File 'lib/adhearsion/initializer/configuration.rb', line 260

def initialize(options)
  path_to_rails, environment = check_options options
  @rails_root = File.expand_path(path_to_rails)
  @environment = environment.to_sym
end

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



259
260
261
# File 'lib/adhearsion/initializer/configuration.rb', line 259

def environment
  @environment
end

#rails_rootObject

Returns the value of attribute rails_root.



259
260
261
# File 'lib/adhearsion/initializer/configuration.rb', line 259

def rails_root
  @rails_root
end