Class: AbstractSyntaxTreeKit::Node::OP_CDECL
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::OP_CDECL
- Defined in:
- lib/astkit/node/op_cdecl.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from AbstractSyntaxTreeKit::Node
#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, namespace:, operator:, value:) ⇒ OP_CDECL
constructor
A new instance of OP_CDECL.
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
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
4 5 6 |
# File 'lib/astkit/node/op_cdecl.rb', line 4 def namespace @namespace end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
4 5 6 |
# File 'lib/astkit/node/op_cdecl.rb', line 4 def operator @operator end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/astkit/node/op_cdecl.rb', line 4 def value @value end |