Module: Lab42::Behavior::Composition
- Included in:
- Lab42::Behavior
- Defined in:
- lib/lab42/core/behavior/composition.rb
Overview
module Composer
Instance Method Summary collapse
Instance Method Details
#|(behavior) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/lab42/core/behavior/composition.rb', line 21 def | behavior if behavior.arity.zero? Composer.zero_arity_composition self, behavior else Composer.arg_passing_composition self, behavior end end |