Class: Matest::Let

Inherits:
Object
  • Object
show all
Defined in:
lib/matest/let.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bangObject (readonly)

Returns the value of attribute bang.



5
6
7
# File 'lib/matest/let.rb', line 5

def bang
  @bang
end

#blockObject (readonly)

Returns the value of attribute block.



4
5
6
# File 'lib/matest/let.rb', line 4

def block
  @block
end

#var_nameObject (readonly)

Returns the value of attribute var_name.



3
4
5
# File 'lib/matest/let.rb', line 3

def var_name
  @var_name
end