Class: Kumi::Syntax::ValueDeclaration

Inherits:
Struct
  • Object
show all
Includes:
Node
Defined in:
lib/kumi/syntax/value_declaration.rb

Instance Attribute Summary collapse

Attributes included from Node

#hints, #loc

Instance Method Summary collapse

Methods included from Node

#==, #initialize

Instance Attribute Details

#expressionObject

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



5
6
7
# File 'lib/kumi/syntax/value_declaration.rb', line 5

def expression
  @expression
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/kumi/syntax/value_declaration.rb', line 5

def name
  @name
end

Instance Method Details

#childrenObject



8
# File 'lib/kumi/syntax/value_declaration.rb', line 8

def children = [expression]

#kindObject



9
# File 'lib/kumi/syntax/value_declaration.rb', line 9

def kind = :value