Top Level Namespace
Defined Under Namespace
Modules: Oso, PolarBoolean
Classes: FalseClass, Source, TrueClass
Constant Summary
collapse
- RESET =
''
- FG_BLUE =
''
- FG_RED =
''
Instance Method Summary
collapse
Instance Method Details
#filename_to_source(filename) ⇒ Object
#print_error(error) ⇒ Object
25
26
27
28
|
# File 'lib/oso/polar/polar.rb', line 25
def print_error(error)
warn FG_RED + error.class.name.split('::').last + RESET
warn error.message
end
|
#supports_color ⇒ Object
11
12
13
|
# File 'lib/oso/polar/polar.rb', line 11
def supports_color
$stdout.tty? && $stderr.tty? && ENV['NO_COLOR'].nil?
end
|