Returns the configuration object for setting up Mr Bones options.
# File lib/bones.rb, line 70
70: def self.config( &block )
71: Loquacious.configuration_for('Bones', &block)
72: end
Returns a help object that can be used to show the current Mr Bones configuration and descriptions for the various configuration attributes.
# File lib/bones.rb, line 80
80: def self.help
81: Loquacious.help_for('Bones', :colorize => config.colorize, :nesting_nodes => false)
82: end
Returns the lib path for Mr Bones. If any arguments are given, they will be joined to the end of the path using File.join.
# File lib/bones.rb, line 51
51: def self.libpath( *args, &block )
52: rv = args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten)
53: if block
54: begin
55: $LOAD_PATH.unshift LIBPATH
56: rv = block.call
57: ensure
58: $LOAD_PATH.shift
59: end
60: end
61: return rv
62: end
Returns the path for Mr Bones. If any arguments are given, they will be joined to the end of the path using File.join.
# File lib/bones.rb, line 35
35: def self.path( *args, &block )
36: rv = args.empty? ? PATH : ::File.join(PATH, args.flatten)
37: if block
38: begin
39: $LOAD_PATH.unshift PATH
40: rv = block.call
41: ensure
42: $LOAD_PATH.shift
43: end
44: end
45: return rv
46: end
Returns the version of the Mr Bones library.
# File lib/bones.rb, line 28
28: def self.version
29: @version ||= File.read(path('version.txt')).strip
30: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.