mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-10 05:48:48 +08:00
22 lines
474 B
Plaintext
22 lines
474 B
Plaintext
define print-ruby-object
|
|
printf "%s\n", (char *)__rb_inspect_obj__($arg0)
|
|
end
|
|
define pro
|
|
printf "%s\n", (char *)__rb_inspect_obj__($arg0)
|
|
end
|
|
|
|
document print-ruby-object
|
|
print-ruby-object(obj): inspects the given object
|
|
end
|
|
document pro
|
|
pro(obj): same as print-ruby-object
|
|
end
|
|
|
|
define print-ruby-ivars
|
|
printf "%s\n", (char*)__rb_list_ivars__(_self)
|
|
end
|
|
|
|
document print-ruby-ivars
|
|
print-ruby-ivars: dump all instance variables of the current 'self' reference
|
|
end
|