Class: Gem::NoAliasYAMLTree
- Inherits:
-
Psych::Visitors::YAMLTree
- Object
- Psych::Visitors::YAMLTree
- Gem::NoAliasYAMLTree
- Defined in:
- lib/rubygems/psych_tree.rb
Instance Method Summary collapse
-
#register(target, obj) ⇒ Object
Noop this out so there are no anchors.
- #visit_String(str) ⇒ Object
Instance Method Details
#register(target, obj) ⇒ Object
Noop this out so there are no anchors
12 13 |
# File 'lib/rubygems/psych_tree.rb', line 12 def register(target, obj) end |
#visit_String(str) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/rubygems/psych_tree.rb', line 4 def visit_String(str) return super unless str == '=' # or whatever you want quote = Psych::Nodes::Scalar::SINGLE_QUOTED @emitter.scalar str, nil, nil, false, true, quote end |