Module: Wonkavision::ActsAsOompaLoompa
- Defined in:
- lib/wonkavision/acts_as_oompa_loompa.rb
Instance Method Summary collapse
- #acts_as_business_activity(opts = {}) ⇒ Object
- #acts_as_event_handler ⇒ Object
- #acts_as_timeline(opts = {}) ⇒ Object
- #acts_like_a_child(opts = {}) ⇒ Object
Instance Method Details
#acts_as_business_activity(opts = {}) ⇒ Object
8 9 10 11 |
# File 'lib/wonkavision/acts_as_oompa_loompa.rb', line 8 def acts_as_business_activity(opts={}) acts_as_event_handler use Wonkavision::Plugins::BusinessActivity, opts end |
#acts_as_event_handler ⇒ Object
4 5 6 |
# File 'lib/wonkavision/acts_as_oompa_loompa.rb', line 4 def acts_as_event_handler include Wonkavision::EventHandler end |
#acts_as_timeline(opts = {}) ⇒ Object
13 14 15 16 |
# File 'lib/wonkavision/acts_as_oompa_loompa.rb', line 13 def acts_as_timeline(opts={}) acts_as_business_activity(opts) use Wonkavision::Plugins::Timeline, opts end |
#acts_like_a_child(opts = {}) ⇒ Object
18 19 20 |
# File 'lib/wonkavision/acts_as_oompa_loompa.rb', line 18 def acts_like_a_child(opts={}) raise "I don't want to include any plugins!" if (1 + rand(10)) % 3 == 0 end |