class Sequel::SQL::Cast

  1. lib/sequel/sql.rb
Parent: SQL

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

Methods

Public Class

  1. new

Public Instance

  1. expr
  2. type

Attributes

expr [R]

The expression to cast

type [R]

The type to which to cast the expression

Public Class methods

new (expr, type)

Set the attributes to the given arguments

[show source]
# File lib/sequel/sql.rb, line 1099
def initialize(expr, type)
  @expr = expr
  @type = type
end