lib/lita/rack_app.rb in lita-4.4.3 vs lib/lita/rack_app.rb in lita-4.5.0

- old
+ new

@@ -40,9 +40,15 @@ def call(env) env["lita.robot"] = robot router.call(env) end + # Overrides the default inspect implementation to make output less verbose and more readable. + def inspect + hex_address = (object_id << 1).to_s(16).rjust(14, "0") + "#<Lita::RackApp:0x#{hex_address}>" + end + # Finds the first route that matches the request environment, if any. Does not trigger the # route. # @param env [Hash] A Rack environment. # @return [Array] An array of the name of the first matching route. # @since 4.0.0