README.md in option_initializer-1.1.4 vs README.md in option_initializer-1.2.0
- old
+ new
@@ -50,9 +50,13 @@
:age => 19,
:greetings => proc { |name| "Hi, I'm #{name}!" }
)
# Method call shortcut
+class Person
+ option_initializer!
+end
+
Person.
name('John Doe').
age(19).
greetings { |name| "Hi, I'm #{name}!" }.
id(1000).