class DrgDSL::Ast::SrglrbTableCondition
INFO: srg (prozedur) l (links) r (rechts) b(beidseitig)
Attributes
condition[R]
variable[R]
Public Class Methods
new(variable:, condition:)
click to toggle source
# File lib/drgdsl/ast.rb, line 350 def initialize(variable:, condition:) @variable = variable @condition = condition end
Public Instance Methods
hash()
click to toggle source
# File lib/drgdsl/ast.rb, line 364 def hash @hash ||= [type, variable, condition].hash end
to_hash()
click to toggle source
# File lib/drgdsl/ast.rb, line 355 def to_hash { srglrb_table_condition: { var: variable.to_hash, condition: condition.to_hash } } end