Module: MHaml::Config

Included in:
MHaml
Defined in:
lib/mhaml/config.rb

Overview

Change config options in an initializer:

MHaml.template_extension = ‘mhaml’

Or in a block:

MHaml.configure do |config|

config.template_extension = 'mhaml'

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#action_view_keyObject

Returns the value of attribute action_view_key.



13
14
15
# File 'lib/mhaml/config.rb', line 13

def action_view_key
  @action_view_key
end

#template_base_pathObject

Returns the value of attribute template_base_path.



13
14
15
# File 'lib/mhaml/config.rb', line 13

def template_base_path
  @template_base_path
end

#template_extensionObject

Returns the value of attribute template_extension.



13
14
15
# File 'lib/mhaml/config.rb', line 13

def template_extension
  @template_extension
end

#template_namespaceObject

Returns the value of attribute template_namespace.



13
14
15
# File 'lib/mhaml/config.rb', line 13

def template_namespace
  @template_namespace
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (MHaml::Config)

    the object that the method was called on



15
16
17
# File 'lib/mhaml/config.rb', line 15

def configure
  yield self
end