Module: AwesomePrint

Defined in:
lib/awesome_print_motion/painter.rb,
lib/awesome_print_motion/version.rb,
lib/awesome_print_motion/formatter.rb,
lib/awesome_print_motion/inspector.rb

Overview

Copyright © 2010-2012 Michael Dvorkin

Awesome Print is freely distributable under the terms of MIT license. See LICENSE file or www.opensource.org/licenses/mit-license.php


Defined Under Namespace

Modules: Painter Classes: Formatter, Inspector

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.defaultsObject

Returns the value of attribute defaults.



9
10
11
# File 'lib/awesome_print_motion/inspector.rb', line 9

def defaults
  @defaults
end

.force_colorsObject

Returns the value of attribute force_colors.



9
10
11
# File 'lib/awesome_print_motion/inspector.rb', line 9

def force_colors
  @force_colors
end

Class Method Details

.console?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/awesome_print_motion/inspector.rb', line 18

def console?
  !!defined?(MotionRepl)
end

.force_colors!(value = true) ⇒ Object

Class accessor to force colorized output (ex. forked subprocess where TERM might be dumb).




14
15
16
# File 'lib/awesome_print_motion/inspector.rb', line 14

def force_colors!(value = true)
  @force_colors = value
end

.versionObject



7
8
9
# File 'lib/awesome_print_motion/version.rb', line 7

def self.version
  "0.1.0"
end