instance method
PP::PPMethods#object_group
(untyped obj) { () -> untyped } -> ::Integer
object_group(obj) { || ... }
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/pp.rb, line 222
def object_group(obj, &block) # :yield:
group(1, '#<' + obj.class.name, '>', &block)
end
A convenience method which is same as follows:
group(1, '#<' + obj.class.name, '>') { ... }
See also
#object_address_group
#pop_inspect_key
#guard_inspect_key
#pp
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0