Class: FluentConditions::ConditionBuilder
- Inherits:
-
Object
- Object
- FluentConditions::ConditionBuilder
- Defined in:
- lib/fluent_conditions/condition_builder.rb
Instance Method Summary collapse
- #and ⇒ Object
-
#initialize(object, type) ⇒ ConditionBuilder
constructor
A new instance of ConditionBuilder.
- #or ⇒ Object
- #OR ⇒ Object
Constructor Details
#initialize(object, type) ⇒ ConditionBuilder
Returns a new instance of ConditionBuilder.
3 4 5 6 7 |
# File 'lib/fluent_conditions/condition_builder.rb', line 3 def initialize(object, type) @object = object @type = type @previous, @current, @big_or = true, true, false end |
Instance Method Details
#and ⇒ Object
20 21 22 |
# File 'lib/fluent_conditions/condition_builder.rb', line 20 def and self end |
#or ⇒ Object
9 10 11 12 |
# File 'lib/fluent_conditions/condition_builder.rb', line 9 def or @or_used = true self end |
#OR ⇒ Object
14 15 16 17 18 |
# File 'lib/fluent_conditions/condition_builder.rb', line 14 def OR update_big_or_result @big_or_used = true self end |