Class: EdifactConverter::EmptyHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/edifact_converter/empty_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nexthandler = nil) ⇒ EmptyHandler

Returns a new instance of EmptyHandler.



7
8
9
# File 'lib/edifact_converter/empty_handler.rb', line 7

def initialize(nexthandler = nil)
	self.next_handler = nexthandler
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object



11
12
13
14
15
# File 'lib/edifact_converter/empty_handler.rb', line 11

def method_missing(sym, *args, &block)
	if self.next_handler
		self.next_handler.send(sym, *args, &block)
	end
end

Instance Attribute Details

#locatorObject

Returns the value of attribute locator.



5
6
7
# File 'lib/edifact_converter/empty_handler.rb', line 5

def locator
  @locator
end

#next_handlerObject

Returns the value of attribute next_handler.



5
6
7
# File 'lib/edifact_converter/empty_handler.rb', line 5

def next_handler
  @next_handler
end