Class: Adhearsion::Configuration::RailsConfiguration
- Inherits:
-
AbstractConfiguration
- Object
- AbstractConfiguration
- Adhearsion::Configuration::RailsConfiguration
- Defined in:
- lib/adhearsion/initializer/configuration.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#rails_root ⇒ Object
Returns the value of attribute rails_root.
Instance Method Summary collapse
-
#initialize(options) ⇒ RailsConfiguration
constructor
A new instance of RailsConfiguration.
Methods included from ConfigurationEntryPoint
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() path_to_rails, environment = @rails_root = File.(path_to_rails) @environment = environment.to_sym end |
Instance Attribute Details
#environment ⇒ Object
Returns the value of attribute environment.
259 260 261 |
# File 'lib/adhearsion/initializer/configuration.rb', line 259 def environment @environment end |
#rails_root ⇒ Object
Returns the value of attribute rails_root.
259 260 261 |
# File 'lib/adhearsion/initializer/configuration.rb', line 259 def rails_root @rails_root end |