module Qpid::Proton::Util::Wrapper
@private
Instance methods to include in classes that wrap pn_object types that support pn_inspect etc. Automatically extends SWIGClassHelper
Attributes
impl[RW]
Public Class Methods
included(base)
click to toggle source
# File lib/util/wrapper.rb, line 124 def self.included(base) base.extend(SWIGClassHelper) end
registry()
click to toggle source
# File lib/util/wrapper.rb, line 143 def self.registry @registry ||= {} end
Public Instance Methods
inspect()
click to toggle source
# File lib/util/wrapper.rb, line 130 def inspect return "#{self.class}<nil>" unless @impl pstr = Cproton.pn_string("") begin Cproton.pn_inspect(@impl, pstr) return Cproton.pn_string_get(pstr) ensure Cproton.pn_free(pstr) end end
to_s()
click to toggle source
# File lib/util/wrapper.rb, line 141 def to_s() inspect; end