Class: Hyraft::Port

Inherits:
Object
  • Object
show all
Defined in:
lib/hyraft/engine/port.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



9
10
11
12
13
14
15
# File 'lib/hyraft/engine/port.rb', line 9

def method_missing(method, *args, &block)
  if @implementor&.respond_to?(method)
    @implementor.send(method, *args, &block)
  else
    super
  end
end

Instance Method Details

#implementor=(adapter) ⇒ Object



5
6
7
# File 'lib/hyraft/engine/port.rb', line 5

def implementor=(adapter)
  @implementor = adapter
end