Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/sqlyzer/parameters.rb
Overview
Extend regular Symbol class of Ruby to enable sexy explicit Sql type cast through divide (/) operator.
Instance Method Summary collapse
-
#/(param) ⇒ Object
Create a new instance of Sqlyzer::Parameter::Default containing current Symbol instance.
Instance Method Details
#/(param) ⇒ Object
Create a new instance of Sqlyzer::Parameter::Default containing current Symbol instance. If param is a Ruby Module, the new Sqlyzer::Parameter::Default class will be generated by calling Sqlyzer::Parameter::Default::get_from_type(), else from Sqlyzer::Parameter::Default::get_from_default().
441 442 443 444 445 446 447 |
# File 'lib/sqlyzer/parameters.rb', line 441 def /(param) if param.kind_of?(Module) Sqlyzer::Parameter::Default.get_from_type self, param else Sqlyzer::Parameter::Default.get_from_default self, param end end |