Class: ActionCase::Base
- Inherits:
-
Object
- Object
- ActionCase::Base
- Defined in:
- lib/action_case/base.rb
Instance Attribute Summary collapse
-
#listener ⇒ Object
Returns the value of attribute listener.
Instance Method Summary collapse
-
#initialize(listener = nil) ⇒ Base
constructor
A new instance of Base.
- #resource ⇒ Object
Constructor Details
#initialize(listener = nil) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/action_case/base.rb', line 6 def initialize(listener = nil) @listener = listener end |
Instance Attribute Details
#listener ⇒ Object
Returns the value of attribute listener.
4 5 6 |
# File 'lib/action_case/base.rb', line 4 def listener @listener end |
Instance Method Details
#resource ⇒ Object
10 11 12 |
# File 'lib/action_case/base.rb', line 10 def resource raise "ActionCase::Base#resource must be overridden" end |