Class: Identifier
- Inherits:
-
Expression
- Object
- Expression
- Identifier
- Defined in:
- lib/eno.rb
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
Methods inherited from Expression
#!=, #!@, #%, #&, #*, #+, #-, #/, #<, #<=, #==, #>, #>=, #as, #desc, #initialize, #inner_join, #join, #not_null?, #null?, #over, quote, #|
Constructor Details
This class inherits a constructor from Expression
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym) ⇒ Object
240 241 242 243 |
# File 'lib/eno.rb', line 240 def method_missing(sym) super if sym == :to_hash Identifier.new("#{@members[0]}.#{sym}") end |
Instance Method Details
#_empty_placeholder? ⇒ Boolean
245 246 247 248 |
# File 'lib/eno.rb', line 245 def _empty_placeholder? m = @members[0] Symbol === m && m == :_ end |
#to_sql ⇒ Object
236 237 238 |
# File 'lib/eno.rb', line 236 def to_sql @members[0].to_s end |