Module: Smullyan::ConfigurableBirds
- Defined in:
- lib/smullyan/configurable_birds.rb
Overview
Module for getting configurable combinator implementations
Class Method Summary collapse
- .B ⇒ Object (also: Bluebird)
- .C ⇒ Object (also: Cardinal)
- .L ⇒ Object (also: Lark)
- .M ⇒ Object (also: Mockingbird)
- .W ⇒ Object (also: Warbler)
Class Method Details
.B ⇒ Object Also known as: Bluebird
8 9 10 11 12 13 14 |
# File 'lib/smullyan/configurable_birds.rb', line 8 def B if Smullyan.configuration.direct?(:b) Birds::B_direct else Birds::B_derived end end |
.C ⇒ Object Also known as: Cardinal
17 18 19 20 21 22 23 |
# File 'lib/smullyan/configurable_birds.rb', line 17 def C if Smullyan.configuration.direct?(:c) Birds::C_direct else Birds::C_derived end end |
.L ⇒ Object Also known as: Lark
44 45 46 47 48 49 50 |
# File 'lib/smullyan/configurable_birds.rb', line 44 def L if Smullyan.configuration.direct?(:l) Birds::L_direct else Birds::L_derived end end |
.M ⇒ Object Also known as: Mockingbird
35 36 37 38 39 40 41 |
# File 'lib/smullyan/configurable_birds.rb', line 35 def M if Smullyan.configuration.direct?(:m) Birds::M_direct else Birds::M_derived end end |
.W ⇒ Object Also known as: Warbler
26 27 28 29 30 31 32 |
# File 'lib/smullyan/configurable_birds.rb', line 26 def W if Smullyan.configuration.direct?(:w) Birds::W_direct else Birds::W_derived end end |