Module: Crabfarm::Live::Interactable::ClassMethods
- Defined in:
- lib/crabfarm/live/interactable.rb
Instance Method Summary collapse
- #live(_options = {}, &_setup) ⇒ Object
- #live_delegate ⇒ Object
- #live_rspec? ⇒ Boolean
- #live_setup ⇒ Object
Instance Method Details
#live(_options = {}, &_setup) ⇒ Object
11 12 13 14 |
# File 'lib/crabfarm/live/interactable.rb', line 11 def live(={}, &_setup) @delegate = [:delegate] @setup = _setup end |
#live_delegate ⇒ Object
20 21 22 |
# File 'lib/crabfarm/live/interactable.rb', line 20 def live_delegate @delegate end |
#live_rspec? ⇒ Boolean
16 17 18 |
# File 'lib/crabfarm/live/interactable.rb', line 16 def live_rspec? @setup.nil? end |
#live_setup ⇒ Object
24 25 26 |
# File 'lib/crabfarm/live/interactable.rb', line 24 def live_setup @setup end |