Class: Stupidedi::Builder::DslReader

Inherits:
Object
  • Object
show all
Defined in:
lib/stupidedi/builder/builder_dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(separators, segment_dict) ⇒ DslReader

Returns a new instance of DslReader.



264
265
266
# File 'lib/stupidedi/builder/builder_dsl.rb', line 264

def initialize(separators, segment_dict)
  @separators, @segment_dict = separators, segment_dict
end

Instance Attribute Details

#segment_dictReader::SegmentDict (readonly)

Returns:



262
263
264
# File 'lib/stupidedi/builder/builder_dsl.rb', line 262

def segment_dict
  @segment_dict
end

#separatorsReader::Separators (readonly)

Returns:



259
260
261
# File 'lib/stupidedi/builder/builder_dsl.rb', line 259

def separators
  @separators
end

Instance Method Details

#copy(changes = {}) ⇒ DslReader

Returns:



269
270
271
272
273
# File 'lib/stupidedi/builder/builder_dsl.rb', line 269

def copy(changes = {})
  @separators   = changes.fetch(:separators, @separators)
  @segment_dict = changes.fetch(:segment_dict, @segment_dict)
  self
end

#stream?Boolean

Returns:

  • (Boolean)


275
276
277
# File 'lib/stupidedi/builder/builder_dsl.rb', line 275

def stream?
  false
end