Class: Maglove::Engine::Configuration
- Inherits:
-
Object
- Object
- Maglove::Engine::Configuration
- Includes:
- Singleton
- Defined in:
- lib/maglove/engine/configuration.rb
Instance Attribute Summary collapse
-
#asset_uri ⇒ Object
Returns the value of attribute asset_uri.
-
#block_path ⇒ Object
Returns the value of attribute block_path.
-
#block_resolver ⇒ Object
Returns the value of attribute block_resolver.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 |
# File 'lib/maglove/engine/configuration.rb', line 9 def initialize @block_resolver = lambda do |identifier, variables| File.read(File.join(Maglove::Engine.config.block_path, "#{identifier}.haml")) end end |
Instance Attribute Details
#asset_uri ⇒ Object
Returns the value of attribute asset_uri.
5 6 7 |
# File 'lib/maglove/engine/configuration.rb', line 5 def asset_uri @asset_uri end |
#block_path ⇒ Object
Returns the value of attribute block_path.
6 7 8 |
# File 'lib/maglove/engine/configuration.rb', line 6 def block_path @block_path end |
#block_resolver ⇒ Object
Returns the value of attribute block_resolver.
7 8 9 |
# File 'lib/maglove/engine/configuration.rb', line 7 def block_resolver @block_resolver end |