~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to lib/yaml.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- mode: ruby; ruby-indent-level: 4; tab-width: 4 -*- vim: sw=4 ts=4
2
 
# $Id: yaml.rb,v 1.19 2005/09/13 03:55:18 why Exp $
 
2
# $Id: yaml.rb,v 1.22 2005/12/29 12:03:55 matz Exp $
3
3
#
4
4
# = yaml.rb: top-level module with methods for loading and parsing YAML documents
5
5
#
11
11
require 'yaml/syck'
12
12
require 'yaml/tag'
13
13
require 'yaml/stream'
 
14
require 'yaml/constants'
14
15
 
15
16
# == YAML
16
17
#
309
310
        #
310
311
        # Add a transfer method for a builtin type
311
312
        #
312
 
        def YAML.add_ruby_type( type, &transfer_proc )
 
313
        def YAML.add_ruby_type( type_tag, &transfer_proc )
313
314
            resolver.add_type( "tag:ruby.yaml.org,2002:#{ type_tag }", transfer_proc )
314
315
        end
315
316
 
391
392
require 'yaml/rubytypes'
392
393
require 'yaml/types'
393
394
 
394
 
module Kernel # :nodoc:
 
395
module Kernel
395
396
    #
396
397
    # ryan:: You know how Kernel.p is a really convenient way to dump ruby
397
398
    #        structures?  The only downside is that it's not as legible as