Sha256: 42b83cbe810fbd72a1b9f6a13bdf9471f155562903ab0697e36b3938c1ff5510

Contents?: true

Size: 498 Bytes

Versions: 6509

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

class Pry
  class Command
    class FixIndent < Pry::ClassCommand
      match 'fix-indent'
      group 'Input and Output'

      description "Correct the indentation for contents of the input buffer"

      banner <<-USAGE
        Usage: fix-indent
      USAGE

      def process
        indented_str = Pry::Indent.indent(eval_string)
        pry_instance.eval_string = indented_str
      end
    end

    Pry::Commands.add_command(Pry::Command::FixIndent)
  end
end

Version data entries

6,509 entries across 6,505 versions & 30 rubygems

Version Path
mux_ruby-3.20.0 vendor/bundle/ruby/3.2.0/gems/pry-0.13.1/lib/pry/commands/fix_indent.rb
cybrid_api_bank_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_organization_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_id_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_bank_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_organization_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_id_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_id_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_bank_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_organization_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_organization_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_id_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_bank_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
ory-client-1.15.12 vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_bank_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_id_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_organization_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_bank_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_organization_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb
cybrid_api_id_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/commands/fix_indent.rb