0.0
No commit activity in last 3 years
No release in over 3 years
DSL for shorter shorter arguments initialization
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 5.5
~> 10.2
 Project Readme

initialize_with

Install

gem install initialize_with

Requirements

ruby version >= 1.9.3

Synopsis

require 'initialize_with'

class Foo
  extend InitializeWith
  initialize_with [:a, :b], c: 1, d: 2
  attr_reader :a, :b, :c, :d
end

foo = Foo.new("foo", "bar")
print foo.a, foo.b, foo.c, foo.d, "\n" # => "foobar12"