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
-
#impl ⇒ Object
Returns the value of attribute impl.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#impl ⇒ Object
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 |
.registry ⇒ Object
139 140 141 |
# File 'lib/util/wrapper.rb', line 139 def self.registry @registry ||= {} end |
Instance Method Details
#inspect ⇒ Object
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_s ⇒ Object
137 |
# File 'lib/util/wrapper.rb', line 137 def to_s() inspect; end |