Class: Yaml::Sort::Item

Inherits:
Scalar show all
Defined in:
lib/yaml/sort/item.rb

Instance Attribute Summary

Attributes inherited from Scalar

#indent, #value

Instance Method Summary collapse

Methods inherited from Scalar

#<=>, #initialize

Methods inherited from Value

#comments, #initialize, #sort

Constructor Details

This class inherits a constructor from Yaml::Sort::Scalar

Instance Method Details

#to_sObject



8
9
10
# File 'lib/yaml/sort/item.rb', line 8

def to_s(*)
  comments + value
end