Class: Maglove::Engine::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/maglove/engine/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_uriObject

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_pathObject

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_resolverObject

Returns the value of attribute block_resolver.



7
8
9
# File 'lib/maglove/engine/configuration.rb', line 7

def block_resolver
  @block_resolver
end