Module: Shoes::Common::Inspect

Included in:
Animation, App, Shoes::Color, UIElement, Dimensions, Gradient, ImagePattern, Point, SlotContents, Sound, Text, Timer
Defined in:
shoes-core/lib/shoes/common/inspect.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject

Object hex representation from github.com/michaeldv/awesome_print Example:

(Shoes::App:0x01234abc "Hello")


13
14
15
# File 'shoes-core/lib/shoes/common/inspect.rb', line 13

def inspect
  "(#{self.class.name}:#{hexy_object_id}#{inspect_details})"
end

#to_sObject



6
7
8
# File 'shoes-core/lib/shoes/common/inspect.rb', line 6

def to_s
  "(#{self.class.name}#{to_s_details})"
end