Class: Alki::Assembly::Handler
- Inherits:
-
Object
- Object
- Alki::Assembly::Handler
- Defined in:
- lib/alki/assembly/handler.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#elem ⇒ Object
readonly
Returns the value of attribute elem.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize(elem, data, key = nil) ⇒ Handler
constructor
A new instance of Handler.
- #output ⇒ Object
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/alki/assembly/handler.rb', line 10 def data @data end |
#elem ⇒ Object (readonly)
Returns the value of attribute elem.
10 11 12 |
# File 'lib/alki/assembly/handler.rb', line 10 def elem @elem end |
#key ⇒ Object (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
#index ⇒ Object
12 13 14 |
# File 'lib/alki/assembly/handler.rb', line 12 def index raise NotImplementedError.new("Can't index into this element") end |
#output ⇒ Object
16 17 18 |
# File 'lib/alki/assembly/handler.rb', line 16 def output raise NotImplementedError.new("Can't output this element") end |