Class: Matest::Let

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_callObject (readonly)

Returns the value of attribute and_call.



75
76
77
# File 'lib/matest.rb', line 75

def and_call
  @and_call
end

#blockObject (readonly)

Returns the value of attribute block.



74
75
76
# File 'lib/matest.rb', line 74

def block
  @block
end

#var_nameObject (readonly)

Returns the value of attribute var_name.



73
74
75
# File 'lib/matest.rb', line 73

def var_name
  @var_name
end