Sha256: a5e56d82c3f8f21baf2ed5b0655bed68f3a2b203fca052ee367b83fdd2ab0b01
Contents?: true
Size: 442 Bytes
Versions: 27
Compression:
Stored size: 442 Bytes
Contents
module Johnson module Nodes TERNARY_NODES = %w{ Ternary If Try Catch } class TernaryNode < Node alias :b_else :value attr_accessor :cond, :b_then def initialize(line, column, cond, b_then, b_else) super(line, column, b_else) @cond = cond @b_then = b_then end end TERNARY_NODES.each { |bn| const_set(bn.to_sym, Class.new(TernaryNode)) } end end
Version data entries
27 entries across 27 versions & 5 rubygems