Sha256: ec5da8708d08be0f7afb72cc786ff570913bd6a0ea64d71ead7f4c503af52578

Contents?: true

Size: 329 Bytes

Versions: 1

Compression:

Stored size: 329 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

## Credits

Thanks [@apeiros](https://github.com/apeiros) for ideas.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kwstruct-0.2.0 README.md