Method: Connect::Dsl#initialize
- Defined in:
- lib/connect/dsl.rb
#initialize(values_table = nil, objects_table = nil, interpolator = nil, includer = nil) ⇒ Dsl
Returns a new instance of Dsl.
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/connect/dsl.rb', line 105 def initialize(values_table = nil, objects_table = nil, interpolator = nil, includer = nil ) # @yydebug = true @values_table = values_table || ValuesTable.new @objects_table = objects_table || ObjectsTable.new Connect::Entry::Base.values_table = @values_table Connect::Entry::Base.objects_table = @objects_table @interpolator = interpolator || Interpolator.new(@values_table) @includer = includer || Includer.new @include_stack = [] @current_scope = [] end |