Class: Kapusta::Compiler::Language::BindingForm

Inherits:
Struct
  • Object
show all
Defined in:
lib/kapusta/compiler/language.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#headObject

Returns the value of attribute head

Returns:

  • (Object)

    the current value of head



16
17
18
# File 'lib/kapusta/compiler/language.rb', line 16

def head
  @head
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



16
17
18
# File 'lib/kapusta/compiler/language.rb', line 16

def target
  @target
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



16
17
18
# File 'lib/kapusta/compiler/language.rb', line 16

def value
  @value
end

Instance Method Details

#mutable?Boolean

Returns:

  • (Boolean)


17
# File 'lib/kapusta/compiler/language.rb', line 17

def mutable? = head == 'var'