Class: Printers::Plain

### Home Classes Methods

### In Files

- lib/ruby-debug/printers/plain.rb

### Parent

Printers::Base

### Methods

- #print
- #print_collection
- #print_variables

### Included Modules

- Columnize

### Class/Module Index

Quicksearch

- Debugger
- Debugger::AddBreakpoint
- Debugger::Breakpoint
- Debugger::Context
- Debugger::ContinueCommand
- Debugger::DeleteBreakpointCommand
- Debugger::FinishCommand
- Debugger::HelpCommand
- Debugger::IRBCommand
- Debugger::InfoCommand
- Debugger::JumpCommand
- Debugger::KillCommand
- Debugger::ListCommand
- Debugger::LocalInterface
- Debugger::LocalInterface::Debugger
- Debugger::MethodCommand
- Debugger::MethodSigCommand
- Debugger::NextCommand
- Debugger::ParseFunctions
- Debugger::Processor
- Debugger::QuitCommand
- Debugger::ReloadCommand
- Debugger::SetCommand
- Debugger::ShowCommand
- Debugger::SkipCommand
- Debugger::SourceCommand
- Debugger::StepCommand
- Debugger::VarClassVarCommand
- Debugger::VarInheritCommand
- Debugger::VarLocalCommand
- Debugger::WhereCommand
- Printers
- Printers::Base
- Printers::Base::MissedArgument
- Printers::Base::MissedPath
- Printers::Plain
- Mocha
- Mocha::Call
- Mocha::Expectation
- Mocha::Mock
- MiniTest
- MiniTest::Assertions
- MiniTest::Expectations
- TestDsl
- TestDsl::ClassMethods
- TestDsl::Shared
- Kernel
- Module
- PrinterHelpers
- TestInterface

No matching classes.

# Printers::Plain

### Public Instance Methods

print(path, args = {}) click to toggle source

    # File lib/ruby-debug/printers/plain.rb, line 6
    def print(path, args = {})
      message = translate(locate(path), args)
      message << " (y/n) " if parts(path).include?("confirmations")
      message << "\n"
    end

print_collection(path, collection, &block) click to toggle source

    # File lib/ruby-debug/printers/plain.rb, line 12
    def print_collection(path, collection, &block)
      modifier = get_modifier(path)
      lines = array_of_args(collection, &block).map { |args| print(path, args) }
      if modifier == 'c'
        columnize(lines.map { |l| l.gsub(/\n$/, '') }, Debugger.settings[:width])
      else
        lines.join("")
      end
    end

print_variables(variables, _kind) click to toggle source

    # File lib/ruby-debug/printers/plain.rb, line 22
    def print_variables(variables, _kind)
      print_collection("variable.variable", variables) do |(key, value), _|
        {key: key, value: value.nil? ? "nil" : value.to_s}
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.