Module: DataBindings::Adapters::TNetstring
- Includes:
- Ruby, GemRequirement
- Defined in:
- lib/data_bindings/adapters/tnetstring.rb
Defined Under Namespace
Modules: Convert
Instance Method Summary collapse
-
#from_tnetstring(str) ⇒ RubyObjectAdapter, RubyArrayAdapter
Constructs a wrapped object from a Tnetstring.
Methods included from GemRequirement
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
10 11 12 |
# File 'lib/data_bindings/adapters/tnetstring.rb', line 10 def from_tnetstring(str) from_ruby(::TNetstring.parse(str)[0]) end |