Class: Tamashii::Handler
- Inherits:
-
Object
- Object
- Tamashii::Handler
- Defined in:
- lib/tamashii/handler.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, env = {}) ⇒ Handler
constructor
A new instance of Handler.
- #resolve(data = nil) ⇒ Object
Constructor Details
#initialize(type, env = {}) ⇒ Handler
Returns a new instance of Handler.
4 5 6 7 |
# File 'lib/tamashii/handler.rb', line 4 def initialize(type, env = {}) @type = type @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
3 4 5 |
# File 'lib/tamashii/handler.rb', line 3 def env @env end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/tamashii/handler.rb', line 3 def type @type end |
Instance Method Details
#resolve(data = nil) ⇒ Object
9 10 11 |
# File 'lib/tamashii/handler.rb', line 9 def resolve(data = nil) raise NotImplementedError.new("The resolve method should be implemented.") end |