Class: HamlCoffeeTemplate::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/haml_coffee_template/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/haml_coffee_template/configuration.rb', line 5

def initialize
  self.namespace = "window.JST"
  self.haml_coffee_compiler_options = {}
  self.coffee_script_compiler_options = {}
  self.haml_coffee_path = File.expand_path("haml-coffee.js", __dir__)
end

Instance Attribute Details

#coffee_script_compiler_optionsObject

Returns the value of attribute coffee_script_compiler_options.



3
4
5
# File 'lib/haml_coffee_template/configuration.rb', line 3

def coffee_script_compiler_options
  @coffee_script_compiler_options
end

#haml_coffee_compiler_optionsObject

Returns the value of attribute haml_coffee_compiler_options.



3
4
5
# File 'lib/haml_coffee_template/configuration.rb', line 3

def haml_coffee_compiler_options
  @haml_coffee_compiler_options
end

#haml_coffee_pathObject

Returns the value of attribute haml_coffee_path.



3
4
5
# File 'lib/haml_coffee_template/configuration.rb', line 3

def haml_coffee_path
  @haml_coffee_path
end

#namespaceObject

Returns the value of attribute namespace.



3
4
5
# File 'lib/haml_coffee_template/configuration.rb', line 3

def namespace
  @namespace
end