Module: Qpid::Proton::Util::Wrapper

Included in:
Codec::Data, Connection, Disposition, Event, Link, Message, Receiver, SASL, SSL, Session, Terminus, Transfer, Transport
Defined in:
lib/util/wrapper.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#implObject

Returns the value of attribute impl.



124
125
126
# File 'lib/util/wrapper.rb', line 124

def impl
  @impl
end

Class Method Details

.included(base) ⇒ Object



120
121
122
# File 'lib/util/wrapper.rb', line 120

def self.included(base)
  base.extend(SWIGClassHelper)
end

.registryObject



139
140
141
# File 'lib/util/wrapper.rb', line 139

def self.registry
  @registry ||= {}
end

Instance Method Details

#inspectObject



126
127
128
129
130
131
132
133
134
135
# File 'lib/util/wrapper.rb', line 126

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_sObject



137
# File 'lib/util/wrapper.rb', line 137

def to_s() inspect; end