Class: AbstractSyntaxTreeKit::Node::SCLASS
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::SCLASS
- Defined in:
- lib/astkit/node/sclass.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Attributes inherited from AbstractSyntaxTreeKit::Node
#children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, receiver:, body:) ⇒ SCLASS
constructor
A new instance of SCLASS.
Constructor Details
#initialize(node:, receiver:, body:) ⇒ SCLASS
Returns a new instance of SCLASS.
6 7 8 9 10 |
# File 'lib/astkit/node/sclass.rb', line 6 def initialize(node:, receiver:, body:) super(node) @receiver = receiver @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/astkit/node/sclass.rb', line 4 def body @body end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
4 5 6 |
# File 'lib/astkit/node/sclass.rb', line 4 def receiver @receiver end |