Class: Wisper::Registration
- Inherits:
-
Object
- Object
- Wisper::Registration
- Defined in:
- lib/wisper/registration/registration.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#listener ⇒ Object
readonly
Returns the value of attribute listener.
-
#on ⇒ Object
readonly
Returns the value of attribute on.
Instance Method Summary collapse
-
#initialize(listener, options) ⇒ Registration
constructor
A new instance of Registration.
Constructor Details
#initialize(listener, options) ⇒ Registration
Returns a new instance of Registration.
5 6 7 8 |
# File 'lib/wisper/registration/registration.rb', line 5 def initialize(listener, ) @listener = listener @on = Array(.fetch(:on) { 'all' }).map(&:to_s) end |
Instance Attribute Details
#listener ⇒ Object (readonly)
Returns the value of attribute listener.
3 4 5 |
# File 'lib/wisper/registration/registration.rb', line 3 def listener @listener end |
#on ⇒ Object (readonly)
Returns the value of attribute on.
3 4 5 |
# File 'lib/wisper/registration/registration.rb', line 3 def on @on end |