Class: Yamlt::Parser::Line::Serializer
- Inherits:
-
Object
- Object
- Yamlt::Parser::Line::Serializer
- Defined in:
- lib/yamlt/parser/line/serializer.rb
Instance Method Summary collapse
-
#initialize(line, overrides = {}) ⇒ Serializer
constructor
A new instance of Serializer.
- #to_s ⇒ Object
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_s ⇒ Object
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 |