Class: DevelopWithPassion::Expander::ArrayWriteableStep

Inherits:
Object
  • Object
show all
Defined in:
lib/developwithpassion_expander/array_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_expander/array_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