Class: Gem::NoAliasYAMLTree
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Psych::Visitors::YAMLTree
|
|
Instance Chain:
self,
Psych::Visitors::YAMLTree
|
|
Inherits: |
Psych::Visitors::YAMLTree
|
Defined in: | lib/rubygems/psych_tree.rb |
Class Method Summary
Instance Method Summary
-
#register(target, obj)
Noop this out so there are no anchors.
- #visit_String(str)
-
#format_time(time)
private
This is ported over from the yaml_tree in 1.9.3.
Class Method Details
.create
[ GitHub ]# File 'lib/rubygems/psych_tree.rb', line 6
def self.create new({}) end
Instance Method Details
#format_time(time) (private)
This is ported over from the yaml_tree in 1.9.3
#register(target, obj)
Noop this out so there are no anchors
# File 'lib/rubygems/psych_tree.rb', line 18
def register(target, obj) end
#visit_String(str)
[ GitHub ]# File 'lib/rubygems/psych_tree.rb', line 10
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