rjocoleman / labelary

Ruby Gem to interact with the Labelary.com ZPL Web Service
MIT License
42 stars 14 forks source link

issue#3 use proper splat operator to pass hash arguments with newer r… #4

Closed aovertus closed 2 years ago

aovertus commented 3 years ago

Found the current issue while upgrade our project. to ruby3

3.0.2 :006 > Class.test(zpl: 'test')
    108: def self.test(*args)
    109:     args
 => 110: end
=> [{:zpl=>"test"}]
=> Return an array

3.0.2 :008 > Class.test(zpl: 'test')
    108: def self.test(**args)
    109:     args
 => 110: end
=> {:zpl=>"test"}
=> Return a hash

@rjocoleman