Class: Stupidedi::Builder::DslReader
- Defined in:
- lib/stupidedi/builder/builder_dsl.rb
Instance Attribute Summary collapse
- #segment_dict ⇒ Reader::SegmentDict readonly
- #separators ⇒ Reader::Separators readonly
Instance Method Summary collapse
- #copy(changes = {}) ⇒ DslReader
-
#initialize(separators, segment_dict) ⇒ DslReader
constructor
A new instance of DslReader.
- #stream? ⇒ Boolean
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_dict ⇒ Reader::SegmentDict (readonly)
262 263 264 |
# File 'lib/stupidedi/builder/builder_dsl.rb', line 262 def segment_dict @segment_dict end |
#separators ⇒ Reader::Separators (readonly)
259 260 261 |
# File 'lib/stupidedi/builder/builder_dsl.rb', line 259 def separators @separators end |
Instance Method Details
#copy(changes = {}) ⇒ DslReader
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
275 276 277 |
# File 'lib/stupidedi/builder/builder_dsl.rb', line 275 def stream? false end |