Sha256: be76f1681c1a82464d2982d9f74754244bb90e71e16fbdbcc8caa0688729a93d

Contents?: true

Size: 467 Bytes

Versions: 174

Compression:

Stored size: 467 Bytes

Contents

class Pry
  class Command::ToggleColor < Pry::ClassCommand
    match 'toggle-color'
    group 'Misc'
    description 'Toggle syntax highlighting.'

    banner <<-'BANNER'
      Usage: toggle-color

      Toggle syntax highlighting.
    BANNER

    def process
      _pry_.color = color_toggle
      output.puts "Syntax highlighting #{_pry_.color ? "on" : "off"}"
    end

    def color_toggle
      !_pry_.color
    end

    Pry::Commands.add_command(self)
  end
end

Version data entries

174 entries across 167 versions & 40 rubygems

Version Path
logstash-output-scalyr-0.1.9 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-output-scalyr-0.1.8 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-output-scalyr-0.1.6 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/pry-0.10.4-java/lib/pry/commands/toggle_color.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/pry-0.12.2/lib/pry/commands/toggle_color.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/pry-0.12.2/lib/pry/commands/toggle_color.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/pry-0.12.2/lib/pry/commands/toggle_color.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/pry-0.12.2/lib/pry/commands/toggle_color.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/pry-0.12.2/lib/pry/commands/toggle_color.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/toggle_color.rb
chess_engine-0.0.2 vendor/bundle/gems/pry-0.12.2/lib/pry/commands/toggle_color.rb