Public Instance methods

[Source]

    # File rss/rss.rb, line 49
49:     def merge(other)
50:       dup.update(other)
51:     end

[Source]

     # File pp.rb, line 301
301:   def pretty_print(q)
302:     q.pp_hash self
303:   end

[Source]

     # File pp.rb, line 305
305:   def pretty_print_cycle(q)
306:     q.text(empty? ? '{}' : '{...}')
307:   end

[Source]

    # File yaml/rubytypes.rb, line 37
37:         def to_yaml( opts = {} )
38:                 YAML::quick_emit( object_id, opts ) do |out|
39:             out.map( taguri, to_yaml_style ) do |map|
40:                 each do |k, v|
41:                     map.add( k, v )
42:                 end
43:             end
44:         end
45:         end

[Source]

    # File yaml/rubytypes.rb, line 28
28:     def yaml_initialize( tag, val )
29:         if Array === val
30:             update Hash.[]( *val )              # Convert the map to a sequence
31:         elsif Hash === val
32:             update val
33:         else
34:             raise YAML::TypeError, "Invalid map explicitly tagged #{ tag }: " + val.inspect
35:         end
36:     end

Search

Google

Ruby API Docs

Links