Class: AbstractSyntaxTreeKit::Node::OP_CDECL

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/op_cdecl.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractSyntaxTreeKit::Node

#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type

Instance Method Summary collapse

Constructor Details

#initialize(node:, namespace:, operator:, value:) ⇒ OP_CDECL

Returns a new instance of OP_CDECL.



6
7
8
9
10
11
# File 'lib/astkit/node/op_cdecl.rb', line 6

def initialize(node:, namespace:, operator:, value:)
  super(node)
  @namespace = namespace
  @operator = operator
  @value = value
end

Instance Attribute Details

#namespaceObject (readonly)

Returns the value of attribute namespace.



4
5
6
# File 'lib/astkit/node/op_cdecl.rb', line 4

def namespace
  @namespace
end

#operatorObject (readonly)

Returns the value of attribute operator.



4
5
6
# File 'lib/astkit/node/op_cdecl.rb', line 4

def operator
  @operator
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/astkit/node/op_cdecl.rb', line 4

def value
  @value
end