Sha256: f257c51b15d0c0f14d5411943f2a130ac5dc445a52a14c25981090c338e156b6
Contents?: true
Size: 481 Bytes
Versions: 16
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true require "pry" require_relative "core" module Hanami module CLI module Repl # @since 2.0.0 # @api private class Pry < Core class Context end def start ::Pry.config.prompt = ::Pry::Prompt.new( "hanami", "my custom prompt", [proc { |*| "#{prompt}> " }] ) ::Pry.start(Context.new.extend(context)) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems