Class: Atomsphere::Query::Builder::Property
- Inherits:
-
Object
- Object
- Atomsphere::Query::Builder::Property
- Defined in:
- lib/atomsphere/query/builder/property.rb
Instance Method Summary collapse
-
#initialize(expression, property) ⇒ Property
constructor
A new instance of Property.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize(expression, property) ⇒ Property
Returns a new instance of Property.
5 6 7 8 |
# File 'lib/atomsphere/query/builder/property.rb', line 5 def initialize(expression, property) @expression = expression @property = property end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
10 11 12 |
# File 'lib/atomsphere/query/builder/property.rb', line 10 def method_missing m, *args, &block __operator(m, *args) if SimpleExpression::OPERATORS.keys.include? m end |