Class: DevelopWithPassion::Arrays::WriteableStep
- Defined in:
- lib/developwithpassion_arrays/writeable_step.rb
Instance Method Summary collapse
Instance Method Details
#run_using(builder) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/developwithpassion_arrays/writeable_step.rb', line 4 def run_using(builder) Module.new do if (builder.writable) define_method("#{builder.name}=") do|value| instance_variable_set("@#{builder.name}",value) end end end end |