зеркало из https://github.com/github/ruby.git
* ext/syck/rubyext.c: Node#value defined twice.
* lib/yaml/: several method redefinitions causing warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
91e0600535
Коммит
c0978692df
|
@ -1,3 +1,9 @@
|
|||
Fri Nov 16 03:36:01 2007 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* ext/syck/rubyext.c: Node#value defined twice.
|
||||
|
||||
* lib/yaml/: several method redefinitions causing warnings.
|
||||
|
||||
Fri Nov 16 03:01:00 2007 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit.
|
||||
|
|
|
@ -2188,7 +2188,6 @@ Init_syck()
|
|||
*/
|
||||
cScalar = rb_define_class_under( rb_syck, "Scalar", cNode );
|
||||
rb_define_alloc_func( cScalar, syck_scalar_alloc );
|
||||
rb_define_attr( cNode, "value", 1, 0 );
|
||||
rb_define_method( cScalar, "initialize", syck_scalar_initialize, 3 );
|
||||
rb_define_method( cScalar, "value=", syck_scalar_value_set, 1 );
|
||||
rb_define_method( cScalar, "style=", syck_scalar_style_set, 1 );
|
||||
|
|
|
@ -184,7 +184,7 @@ module YAML
|
|||
#
|
||||
def []( *key )
|
||||
if Hash === @value
|
||||
v = @value.detect { |k,v| k.transform == key.first }
|
||||
v = @value.detect { |k,| k.transform == key.first }
|
||||
v[1] if v
|
||||
elsif Array === @value
|
||||
@value.[]( *key )
|
||||
|
|
|
@ -10,7 +10,6 @@ module YAML
|
|||
#
|
||||
class PrivateType
|
||||
def self.tag_subclasses?; false; end
|
||||
attr_accessor :type_id, :value
|
||||
verbose, $VERBOSE = $VERBOSE, nil
|
||||
def initialize( type, val )
|
||||
@type_id = type; @value = val
|
||||
|
@ -28,7 +27,6 @@ module YAML
|
|||
#
|
||||
class DomainType
|
||||
def self.tag_subclasses?; false; end
|
||||
attr_accessor :domain, :type_id, :value
|
||||
verbose, $VERBOSE = $VERBOSE, nil
|
||||
def initialize( domain, type, val )
|
||||
@domain = domain; @type_id = type; @value = val
|
||||
|
|
Загрузка…
Ссылка в новой задаче