class AwesomePrint::Formatters::MethodFormatter

Attributes

inspector[R]
method[R]
options[R]

Public Class Methods

new(method, inspector) click to toggle source
# File lib/awesome_print/formatters/method_formatter.rb, line 9
def initialize(method, inspector)
  @method = method
  @inspector = inspector
  @options = inspector.options
end

Public Instance Methods

format() click to toggle source
# File lib/awesome_print/formatters/method_formatter.rb, line 15
def format
  name, args, owner = method_tuple(method)

  "#{colorize(owner, :class)}##{colorize(name, :method)}#{colorize(args, :args)}"
end