Class: Wee::AnswerDecoration::Interceptor
- Defined in:
- lib/wee/decoration.rb
Instance Attribute Summary collapse
-
#action_callback ⇒ Object
Returns the value of attribute action_callback.
-
#answer_callback ⇒ Object
Returns the value of attribute answer_callback.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(action_callback, answer_callback) ⇒ Interceptor
constructor
A new instance of Interceptor.
Constructor Details
#initialize(action_callback, answer_callback) ⇒ Interceptor
Returns a new instance of Interceptor.
132 133 134 |
# File 'lib/wee/decoration.rb', line 132 def initialize(action_callback, answer_callback) @action_callback, @answer_callback = action_callback, answer_callback end |
Instance Attribute Details
#action_callback ⇒ Object
Returns the value of attribute action_callback.
130 131 132 |
# File 'lib/wee/decoration.rb', line 130 def action_callback @action_callback end |
#answer_callback ⇒ Object
Returns the value of attribute answer_callback.
130 131 132 |
# File 'lib/wee/decoration.rb', line 130 def answer_callback @answer_callback end |