Module: Prettys

Defined in:
lib/matcher.rb,
lib/prettys.rb,
lib/colorizer.rb,
lib/converter.rb

Defined Under Namespace

Modules: Matcher Classes: Colorizer, Converter

Class Method Summary collapse

Class Method Details

.formatObject



12
13
14
# File 'lib/prettys.rb', line 12

def format
  @converter.format
end

.format=(format) ⇒ Object



16
17
18
# File 'lib/prettys.rb', line 16

def format=(format)
  @converter.format = format
end

.prettys(object, options) ⇒ Object



20
21
22
23
# File 'lib/prettys.rb', line 20

def prettys(object, options)
  options[:string] = @converter.convert(object)
  @colorizer.colorize(options)
end