Class: Laksa::Contract::Value

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vname, type, value) ⇒ Value

Returns a new instance of Value.



129
130
131
132
133
# File 'lib/laksa/contract/contract.rb', line 129

def initialize(vname, type, value)
  @vname = vname
  @type = type
  @value = value
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



128
129
130
# File 'lib/laksa/contract/contract.rb', line 128

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



128
129
130
# File 'lib/laksa/contract/contract.rb', line 128

def value
  @value
end

#vnameObject (readonly)

Returns the value of attribute vname.



128
129
130
# File 'lib/laksa/contract/contract.rb', line 128

def vname
  @vname
end