Class: MilkTea::AST::ProcExpr
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::ProcExpr
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
-
#initialize(params:, return_type:, body:, line: nil, column: nil) ⇒ ProcExpr
constructor
A new instance of ProcExpr.
Constructor Details
#initialize(params:, return_type:, body:, line: nil, column: nil) ⇒ ProcExpr
Returns a new instance of ProcExpr.
271 |
# File 'lib/milk_tea/core/ast.rb', line 271 def initialize(params:, return_type:, body:, line: nil, column: nil) = super |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
270 271 272 |
# File 'lib/milk_tea/core/ast.rb', line 270 def body @body end |
#column ⇒ Object (readonly)
Returns the value of attribute column
270 271 272 |
# File 'lib/milk_tea/core/ast.rb', line 270 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
270 271 272 |
# File 'lib/milk_tea/core/ast.rb', line 270 def line @line end |
#params ⇒ Object (readonly)
Returns the value of attribute params
270 271 272 |
# File 'lib/milk_tea/core/ast.rb', line 270 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
270 271 272 |
# File 'lib/milk_tea/core/ast.rb', line 270 def return_type @return_type end |