Class Symbol
In: yaml/rubytypes.rb

Parent: Object

Methods

dclone   to_yaml   yaml_new  

Public Class methods

[Source]

     # File yaml/rubytypes.rb, line 184
184:     def Symbol.yaml_new( klass, tag, val )
185:         if String === val
186:             val.intern
187:         else
188:             raise YAML::TypeError, "Invalid Symbol: " + val.inspect
189:         end
190:     end

Public Instance methods

[Source]

13:   def dclone
14:     self
15:   end

[Source]

     # File yaml/rubytypes.rb, line 191
191:         def to_yaml( opts = {} )
192:                 YAML::quick_emit( nil, opts ) do |out|
193:             out.scalar( "tag:yaml.org,2002:str", self.inspect, :plain )
194:         end
195:         end

Search

Google

Ruby API Docs

Links