class Lignite::Never

A condition that is never true

Public Instance Methods

cond_jump(compiler, _offset) click to toggle source
# File lib/lignite/condition.rb, line 48
def cond_jump(compiler, _offset)
  # Never jump: do a jump of size 0
  # but it must be a jump because code size calculations need that
  compiler.jr(JumpOffset.new(0))
end
not() click to toggle source
# File lib/lignite/condition.rb, line 44
def not
  Always.new
end