class Clear::Expression::UnsafeSql


Wrap an unsafe string. Useful to cancel-out the safe_literal function used internally. Obviously, this can lead to SQL injection, so beware!

Included Modules

Defined in:



Instance Method Summary

Instance methods inherited from module Clear::Expression::Literal

to_json(x) to_json, to_sql to_sql

Constructor Detail

def #

[View source]

Instance Method Detail

def to_json(b = nil) : String #

[View source]
def to_s : String #
Description copied from class Object

Returns a string representation of this object.

Descendants must usually not override this method. Instead, they must override to_s(io), which must append to the given IO object.

[View source]
def to_sql : String #

[View source]