Class: MilkTea::AST::StaticAssert

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#conditionObject (readonly)

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



158
159
160
# File 'lib/milk_tea/core/ast.rb', line 158

def condition
  @condition
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



158
159
160
# File 'lib/milk_tea/core/ast.rb', line 158

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



158
159
160
# File 'lib/milk_tea/core/ast.rb', line 158

def message
  @message
end