Module: OneTouch::PortBuild

Defined in:
lib/one_touch/core/bridge.rb

Overview

END RelationRecorder

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



52
53
54
# File 'lib/one_touch/core/bridge.rb', line 52

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#portname_on(bridge_klass) ⇒ Object



70
71
72
73
# File 'lib/one_touch/core/bridge.rb', line 70

def portname_on(bridge_klass)
  (rr = RelationRecorder.find(bridge_klass)) &&
    rr.portname_of(self.class.name.to_sym)
end