Skip to Content Skip to Search
Methods
C
R
V

Class Public methods

create()

# File ruby/lib/rubygems/psych_tree.rb, line 6
def self.create
  new({})
end

Instance Public methods

register(target, obj)

Noop this out so there are no anchors

# File ruby/lib/rubygems/psych_tree.rb, line 18
def register(target, obj)
end

visit_String(str)

# File ruby/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