Class: Matest::Let
- Inherits:
-
Object
- Object
- Matest::Let
- Defined in:
- lib/matest/let.rb
Instance Attribute Summary collapse
-
#bang ⇒ Object
readonly
Returns the value of attribute bang.
-
#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, bang = false) ⇒ Let
constructor
A new instance of Let.
Constructor Details
#initialize(var_name, block, bang = false) ⇒ Let
Returns a new instance of Let.
7 8 9 10 11 |
# File 'lib/matest/let.rb', line 7 def initialize(var_name, block, bang=false) @var_name = var_name @block = block @bang = bang end |
Instance Attribute Details
#bang ⇒ Object (readonly)
Returns the value of attribute bang.
5 6 7 |
# File 'lib/matest/let.rb', line 5 def bang @bang end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/matest/let.rb', line 4 def block @block end |
#var_name ⇒ Object (readonly)
Returns the value of attribute var_name.
3 4 5 |
# File 'lib/matest/let.rb', line 3 def var_name @var_name end |