Class: Yamlt::Parser::Line::Serializer

Inherits:
Object
  • Object
show all
Defined in:
lib/yamlt/parser/line/serializer.rb

Instance Method Summary collapse

Constructor Details

#initialize(line, overrides = {}) ⇒ Serializer


5
6
7
8
# File 'lib/yamlt/parser/line/serializer.rb', line 5

def initialize(line, overrides = {})
  @line = line
  @overrides = overrides
end

Instance Method Details

#to_sObject


10
11
12
# File 'lib/yamlt/parser/line/serializer.rb', line 10

def to_s
  [ original, result ].compact.join($/)
end