Top Level Namespace

Defined Under Namespace

Modules: ConnectorsSdk, ConnectorsShared

Instance Method Summary collapse

Instance Method Details

#required_path(absolute_path) ⇒ Object



9
10
11
12
13
14
# File 'lib/connectors_sdk.rb', line 9

def required_path(absolute_path)
  absolute_dir = File.dirname(absolute_path)
  relative_dir = absolute_dir.sub(/.*lib\/connectors_sdk/, 'connectors_sdk')
  name = File.basename(absolute_path, '.rb')
  File.join(relative_dir, name)
end