Class: Angular::Html2js::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(config_name) ⇒ Object



33
34
35
36
# File 'lib/angular/html2js/configuration.rb', line 33

def method_missing(config_name, *)
  puts "Sorry, there is no such configuration option named #{config_name}"
  super
end

Instance Attribute Details

#module_nameObject

Returns the value of attribute module_name.



19
20
21
# File 'lib/angular/html2js/configuration.rb', line 19

def module_name
  @module_name
end

Instance Method Details

#cache_id(&block) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/angular/html2js/configuration.rb', line 21

def cache_id(&block)
  if block
    @cache_id = block
  else
    @cache_id
  end
end

#reset!Object



29
30
31
# File 'lib/angular/html2js/configuration.rb', line 29

def reset!
  @cache_id = @module_name = nil
end