Class: PGB::Identifier
- Inherits:
-
Expression
- Object
- Expression
- PGB::Identifier
- Defined in:
- lib/pgb/identifier.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Identifier
constructor
A new instance of Identifier.
- #to_sql ⇒ Object
Methods included from SQLDisplayable
Constructor Details
#initialize(value) ⇒ Identifier
Returns a new instance of Identifier.
5 6 7 |
# File 'lib/pgb/identifier.rb', line 5 def initialize(value) @value = "\"#{value.to_s.gsub('"', '""')}\"" end |
Instance Method Details
#to_sql ⇒ Object
9 10 11 |
# File 'lib/pgb/identifier.rb', line 9 def to_sql value end |