Sha256: 1102056949796dbe31443f30c45cf7d5bf10b505f393ff1bc18e2569a656b721

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

require 'map'

args = [0, 1, {:k => :v, :a => false}]
opts = Map.options_for!(args)

#p args.object_id
#p opts.arguments.object_id
#p !args.last.is_a?(Hash)
#puts
#puts

new_args = [0, 1, opts]
new_opts = Map.options_for!(new_args)
#p new_opts.popped?
p new_args
p args
#p !new_args.last.is_a?(Hash)
#p new_opts.arguments.object_id
#p new_args.object_id

puts
puts
__END__

puts '---'

p opts.arguments
p args


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
map-5.1.0 a.rb