Class: MilkTea::AST::StaticAssert
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::StaticAssert
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(condition:, message:, line: nil) ⇒ StaticAssert
constructor
A new instance of StaticAssert.
Constructor Details
#initialize(condition:, message:, line: nil) ⇒ StaticAssert
Returns a new instance of StaticAssert.
159 |
# File 'lib/milk_tea/core/ast.rb', line 159 def initialize(condition:, message:, line: nil) = super |
Instance Attribute Details
#condition ⇒ Object (readonly)
Returns the value of attribute condition
158 159 160 |
# File 'lib/milk_tea/core/ast.rb', line 158 def condition @condition end |
#line ⇒ Object (readonly)
Returns the value of attribute line
158 159 160 |
# File 'lib/milk_tea/core/ast.rb', line 158 def line @line end |
#message ⇒ Object (readonly)
Returns the value of attribute message
158 159 160 |
# File 'lib/milk_tea/core/ast.rb', line 158 def @message end |