class Sequel::SQL::Cast

Represents a cast of an SQL expression to a specific type.

Attributes

expr[R]

The expression to cast

type[R]

The type to which to cast the expression

Public Class Methods

new(expr, type) click to toggle source

Set the attributes to the given arguments

# File lib/sequel/sql.rb, line 1124
def initialize(expr, type)
  @expr = expr
  @type = type
end