Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::IntegerNode#inspect
inspect(inspector = NodeInspector.new)
lib/prism/node.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism/node.rb, line 9672
def inspect(inspector = NodeInspector.new)
inspector << inspector.header(self)
flags = [("binary" if binary?), ("decimal" if decimal?), ("octal" if octal?), ("hexadecimal" if hexadecimal?)].compact
inspector << "└── flags: #{flags.empty? ? "∅" : flags.join(", ")}\n"
inspector.to_str
end
def inspect(inspector: NodeInspector) -> String