Class: Yaml::Sort::Value
- Inherits:
-
Object
- Object
- Yaml::Sort::Value
- Defined in:
- lib/yaml/sort/value.rb
Direct Known Subclasses
Instance Method Summary collapse
- #comments ⇒ Object
-
#initialize ⇒ Value
constructor
A new instance of Value.
- #sort ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Value
6 7 8 |
# File 'lib/yaml/sort/value.rb', line 6 def initialize @comment = [] end |
Instance Method Details
#comments ⇒ Object
14 15 16 |
# File 'lib/yaml/sort/value.rb', line 14 def comments @comment.join end |
#sort ⇒ Object
18 19 20 |
# File 'lib/yaml/sort/value.rb', line 18 def sort self end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/yaml/sort/value.rb', line 10 def to_s(*) comments end |