Class: Hash
Instance Method Summary collapse
Instance Method Details
#is_complex_yaml? ⇒ Boolean
262 |
# File 'lib/rbyaml.rb', line 262 def is_complex_yaml?; true; end |
#yaml_initialize(tag, val) ⇒ Object
263 264 265 266 267 268 269 270 271 |
# File 'lib/rbyaml.rb', line 263 def yaml_initialize( tag, val ) if Array === val update Hash.[]( *val ) # Convert the map to a sequence elsif Hash === val update val else raise RbYAML::TypeError, "Invalid map explicitly tagged #{ tag }: " + val.inspect end end |