Class: Tamashii::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/tamashii/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#envObject (readonly)

Returns the value of attribute env.



3
4
5
# File 'lib/tamashii/handler.rb', line 3

def env
  @env
end

#typeObject (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

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/tamashii/handler.rb', line 9

def resolve(data = nil)
  raise NotImplementedError.new("The resolve method should be implemented.")
end