Module: DataBindings::Adapters::TNetstring

Includes:
Ruby, GemRequirement
Defined in:
lib/data_bindings/adapters/tnetstring.rb

Defined Under Namespace

Modules: Convert

Instance Method Summary collapse

Methods included from GemRequirement

gentle_require_gem, included

Methods included from Ruby

#from_ruby, #from_ruby_array, #from_ruby_hash

Instance Method Details

#from_tnetstring(str) ⇒ RubyObjectAdapter, RubyArrayAdapter

Constructs a wrapped object from a Tnetstring

Parameters:

  • str (String)

    The Tnetstring object

Returns:



10
11
12
# File 'lib/data_bindings/adapters/tnetstring.rb', line 10

def from_tnetstring(str)
  from_ruby(::TNetstring.parse(str)[0])
end