Class: GitHub::SQL::Literal
- Inherits:
-
Object
- Object
- GitHub::SQL::Literal
- Defined in:
- lib/github/sql.rb
Overview
Internal: a SQL literal value.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Public: the string value of this literal.
Instance Method Summary collapse
-
#initialize(value) ⇒ Literal
constructor
A new instance of Literal.
- #inspect ⇒ Object
Constructor Details
#initialize(value) ⇒ Literal
Returns a new instance of Literal.
40 41 42 |
# File 'lib/github/sql.rb', line 40 def initialize(value) @value = value.to_s.dup.freeze end |
Instance Attribute Details
#value ⇒ Object (readonly)
Public: the string value of this literal
38 39 40 |
# File 'lib/github/sql.rb', line 38 def value @value end |
Instance Method Details
#inspect ⇒ Object
44 45 46 |
# File 'lib/github/sql.rb', line 44 def inspect "<#{self.class.name} #{value}>" end |