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

Returns a new instance of 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
13
14
15
16
17
18
19
# File 'lib/yamlt/parser/line/serializer.rb', line 10

def to_s
  [ level_string,
    fragment_string,
    anchor_string,
    prefix_string,
    value_string,
    comment_prefix,
    comment
  ].join("")
end