Class: PGB::Literal

Inherits:
Expression show all
Defined in:
lib/pgb/literal.rb

Instance Method Summary collapse

Methods included from SQLDisplayable

#inspect, #to_s

Constructor Details

#initialize(value) ⇒ Literal

Returns a new instance of Literal.



5
6
7
# File 'lib/pgb/literal.rb', line 5

def initialize(value)
  @value = to_db(value).to_s
end

Instance Method Details

#to_sqlObject



9
10
11
# File 'lib/pgb/literal.rb', line 9

def to_sql
  value
end