Class: Alki::Assembly::Handler

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem, data, key = nil) ⇒ Handler

Returns a new instance of Handler.



4
5
6
7
8
# File 'lib/alki/assembly/handler.rb', line 4

def initialize(elem,data,key=nil)
  @elem = elem
  @data = data
  @key = key
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/alki/assembly/handler.rb', line 10

def data
  @data
end

#elemObject (readonly)

Returns the value of attribute elem.



10
11
12
# File 'lib/alki/assembly/handler.rb', line 10

def elem
  @elem
end

#keyObject (readonly)

Returns the value of attribute key.



10
11
12
# File 'lib/alki/assembly/handler.rb', line 10

def key
  @key
end

Instance Method Details

#indexObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/alki/assembly/handler.rb', line 12

def index
  raise NotImplementedError.new("Can't index into this element")
end

#outputObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/alki/assembly/handler.rb', line 16

def output
  raise NotImplementedError.new("Can't output this element")
end