Sha256: 1098e509b2b7bd423a0a314dc1fd373e3bf62e8f87b37e969988077cfb46ce1c
Contents?: true
Size: 259 Bytes
Versions: 1
Compression:
Stored size: 259 Bytes
Contents
# kwstruct Just like regular Struct, but uses keyword arguments. ```ruby Person = KwStruct.new(:name, :age) sammy = Person.new(name: 'Sammy', age: 30) ``` Any non-existent arguments will raise an ArgumentError. ## Installation $ gem install kwstruct
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kwstruct-0.1.0 | README.md |