A Shy
is like a Struct
, but private
and instantiated with a Hash
Add this line to your application's Gemfile:
gem 'shy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install shy
require 'shy'
class Shush
include Shy
shy :foo, :bar
def to_s
"#{foo} and #{bar}"
end
end
shush = Shush.new(foo: "Foo", bar: "Bar")
puts shush
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request