Class: Matest::Let
- Inherits:
-
Object
- Object
- Matest::Let
- Defined in:
- lib/matest.rb
Instance Attribute Summary collapse
-
#and_call ⇒ Object
readonly
Returns the value of attribute and_call.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#var_name ⇒ Object
readonly
Returns the value of attribute var_name.
Instance Method Summary collapse
-
#initialize(var_name, block, and_call = false) ⇒ Let
constructor
A new instance of Let.
Constructor Details
#initialize(var_name, block, and_call = false) ⇒ Let
Returns a new instance of Let.
77 78 79 80 81 |
# File 'lib/matest.rb', line 77 def initialize(var_name, block, and_call=false) @var_name = var_name @block = block @and_call = and_call end |
Instance Attribute Details
#and_call ⇒ Object (readonly)
Returns the value of attribute and_call.
75 76 77 |
# File 'lib/matest.rb', line 75 def and_call @and_call end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
74 75 76 |
# File 'lib/matest.rb', line 74 def block @block end |
#var_name ⇒ Object (readonly)
Returns the value of attribute var_name.
73 74 75 |
# File 'lib/matest.rb', line 73 def var_name @var_name end |