Class: Foobara::Callback::Registry::JoinedConditioned
- Inherits:
-
Conditioned
- Object
- Base
- Conditioned
- Foobara::Callback::Registry::JoinedConditioned
- Defined in:
- foobara-0.0.141/projects/callback/src/registry/joined_conditioned.rb
Instance Attribute Summary collapse
-
#first ⇒ Object
Returns the value of attribute first.
-
#second ⇒ Object
Returns the value of attribute second.
Attributes inherited from Conditioned
#callback_sets, #possible_condition_keys, #possible_conditions
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(first, second) ⇒ JoinedConditioned
constructor
A new instance of JoinedConditioned.
- #unioned_callback_set_for ⇒ Object
Methods inherited from Conditioned
Methods inherited from Base
#after, #around, #before, #error, #has_after_callbacks?, #has_around_callbacks?, #has_before_callbacks?, #has_callbacks?, #has_error_callbacks?, #register_callback, #runner, #specific_callback_set_for
Constructor Details
#initialize(first, second) ⇒ JoinedConditioned
Returns a new instance of JoinedConditioned.
11 12 13 14 15 16 |
# File 'foobara-0.0.141/projects/callback/src/registry/joined_conditioned.rb', line 11 def initialize(first, second) self.first = first self.second = second super(possible_conditions) end |
Instance Attribute Details
#first ⇒ Object
Returns the value of attribute first.
7 8 9 |
# File 'foobara-0.0.141/projects/callback/src/registry/joined_conditioned.rb', line 7 def first @first end |
#second ⇒ Object
Returns the value of attribute second.
7 8 9 |
# File 'foobara-0.0.141/projects/callback/src/registry/joined_conditioned.rb', line 7 def second @second end |
Instance Method Details
#unioned_callback_set_for ⇒ Object
18 19 20 21 22 23 24 |
# File 'foobara-0.0.141/projects/callback/src/registry/joined_conditioned.rb', line 18 def unioned_callback_set_for(...) super.union( first.unioned_callback_set_for(...).union( second.unioned_callback_set_for(...) ) ) end |