module Lucid
Constants
- BINARY
- CODEPAGE
- IRONRUBY
- JRUBY
- LIBDIR
- OS_X
- RAILS
- RUBY_1_9
- RUBY_2_0
- RUBY_2_1
- RUBY_BINARY
- VERSION
- WINDOWS
- WINDOWS_MRI
Attributes
use_full_backtrace[RW]
wants_to_quit[RW]
Public Class Methods
breakdown(*args)
click to toggle source
# File lib/lucid.rb, line 22 def breakdown(*args) current_output = $stdout begin msg_string = StringIO.new $stdout = msg_string pp(*args) ensure $stdout = current_output end msg_string.string end
file_mode(m, encoding='UTF-8')
click to toggle source
# File lib/lucid/platform.rb, line 22 def file_mode(m, encoding='UTF-8') "#{m}:#{encoding}" end
logger()
click to toggle source
# File lib/lucid.rb, line 34 def logger return @log if @log @log = Logger.new(STDOUT) @log.level = Logger::INFO @log end
logger=(logger)
click to toggle source
# File lib/lucid.rb, line 41 def logger=(logger) @log = logger end
version()
click to toggle source
# File lib/lucid.rb, line 18 def version "Lucid v#{Lucid::VERSION}" end