Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/roby/support.rb,
lib/roby/gui/dot_id.rb,
lib/roby/droby/marshallable.rb
Instance Method Summary collapse
Instance Method Details
#dot_id ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/roby/gui/dot_id.rb', line 2 def dot_id id = object_id id = if id < 0 (0xFFFFFFFFFFFFFFFF + id).to_s else id.to_s end "object_#{id}" end |
#droby_marshallable? ⇒ Boolean
2 |
# File 'lib/roby/droby/marshallable.rb', line 2 def droby_marshallable?; true end |
#inspect ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/roby/support.rb', line 39 def inspect guard = (Thread.current[:ROBY_SUPPORT_INSPECT_RECURSION_GUARD] ||= Hash.new) guard.compare_by_identity if guard.has_key?(self) return "..." else begin guard[self] = self to_s ensure guard.delete(self) end end end |