Module: Smi

Defined in:
lib/smi.rb,
lib/smi/node.rb,
lib/smi/config.rb,
lib/smi/module.rb,
lib/smi/version.rb,
lib/smi/wrapper.rb

Defined Under Namespace

Modules: Ffi, Wrapper Classes: Config, Module, Node

Class Method Summary collapse

Class Method Details

.translate(name) ⇒ Object



19
20
21
22
23
# File 'lib/smi.rb', line 19

def self.translate(name)
  node = Smi::Node.get_node(name)
  index = name.split(node.name).last
  node.oid + index
end