class Rusql::Operand

Public Class Methods

new(op) click to toggle source
# File lib/rusql/operand.rb, line 3
def initialize(op)
  raise TypeException.new(String, op.class) unless op.is_a?(String)
  @op = op
end

Public Instance Methods

like(v) click to toggle source
# File lib/rusql/operand.rb, line 32
def like(v)
  raise TypeException.new(String, v.class) unless v.is_a?(String)

  c = BasicCondition.new
  c.type = :like
  c.left = self
  c.right = v
  
  c
end
to_s() click to toggle source
# File lib/rusql/operand.rb, line 43
def to_s
  @op
end