Class: Object

Inherits:
BasicObject
Defined in:
lib/tnetstrings.rb

Instance Method Summary collapse

Instance Method Details

#to_tnets(*a, &b) ⇒ Object



87
88
89
90
91
92
93
94
95
# File 'lib/tnetstrings.rb', line 87

def to_tnets(*a, &b)
  if respond_to? :as_tnets
    as_tnets(*a).to_tnets
  elsif respond_to? :as_json
    as_json(*a).to_tnets
  else
    method_missing(:to_tnets, *a, &b)
  end
end