Class: Eventbox::WrappedObject
- Inherits:
-
Object
- Object
- Eventbox::WrappedObject
- Defined in:
- lib/eventbox/sanitizer.rb
Overview
Generic wrapper for objects that are passed through a foreign scope as reference.
Access to the object from a different scope is denied, but the wrapper object can be stored and passed back to the origin scope to unwrap it.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
272 273 274 |
# File 'lib/eventbox/sanitizer.rb', line 272 def name @name end |
Instance Method Details
#inspect ⇒ Object
286 287 288 289 290 291 292 |
# File 'lib/eventbox/sanitizer.rb', line 286 def inspect el = case @event_loop when EventLoop then @event_loop.object_id.to_s(16) else @event_loop.inspect end "#<#{self.class} @object=#{@object.inspect} @name=#{@name.inspect} @event_loop=#{el}>" end |