Class: Vertigo::Assert

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(cond = nil, report = nil, severity = nil) ⇒ Assert

Returns a new instance of Assert.



281
282
283
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 281

def initialize cond=nil,report=nil,severity=nil
  @cond,@report,@severity=cond,report,severity
end

Instance Attribute Details

#condObject

Returns the value of attribute cond.



280
281
282
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 280

def cond
  @cond
end

#reportObject

Returns the value of attribute report.



280
281
282
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 280

def report
  @report
end

#severityObject

Returns the value of attribute severity.



280
281
282
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 280

def severity
  @severity
end