Module: Grumlin::Expressions::Expression
- Defined in:
- lib/grumlin/expressions/expression.rb
Instance Method Summary collapse
Instance Method Details
#define_steps(steps, tool_name) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/grumlin/expressions/expression.rb', line 4 def define_steps(steps, tool_name) steps.each do |step| define_method step do name = "@#{step}" return instance_variable_get(name) if instance_variable_defined?(name) instance_variable_set(name, Grumlin::TypedValue.new(type: tool_name, value: step)) end end end |