Method: SemanticNavigation::Core::Base#initialize

Defined in:
lib/semantic_navigation/core/base.rb

#initialize(options, level) ⇒ Base

Returns a new instance of Base.



18
19
20
21
22
23
24
# File 'lib/semantic_navigation/core/base.rb', line 18

def initialize(options, level)
  @level = level
  @html = {}
  options.keys.each do |option_name|
    instance_variable_set :"@#{option_name}", options[option_name]
  end
end