lib/just_go/point.rb in just_go-0.1.9 vs lib/just_go/point.rb in just_go-0.1.10
- old
+ new
@@ -12,10 +12,10 @@
@y = y
@stone = case stone
when JustGo::Stone
stone
when Hash
- JustGo::Stone.new(stone)
+ JustGo::Stone.new(**stone)
when nil
stone
else
raise ArgumentError, "stone must be Stone, Hash or nil"
end