attributes

attributes(text) Instance Public methods Applies attribute-specific markup to text using RDoc::AttributeManager

new

new(*args) Class Public methods

audio_path

audio_path(source, options = {}) Instance Public methods Computes the path to an audio asset in the public audios directory. Full paths from the document root will be passed through. Used internally by audio_tag to build the audio path. audio_path("horse") # => /audios/horse audio_path("horse.wav") # => /audios/horse.wav audio_path("sounds/horse.wav") # => /aud

shape_bounds

shape_bounds(kind=nil) Instance Public methods

set

set(val) Instance Public methods

clone

clone() Instance Public methods Returns a clone of the matrix, so that the contents of each do not reference identical objects. There should be no good reason to do this since Matrices are immutable.

`

`cmd` â string Instance Public methods Returns the standard output of running cmd in a subshell. The built-in syntax %x{...} uses this method. Sets $? to the process status. `date` #=> "Wed Apr 9 08:56:30 CDT 2003\n" `ls testdir`.split[1] #=> "main.rb" `echo oops && exit 99` #=> "oops\n" $?.exitstatus #=> 99

binding

binding â a_binding Instance Public methods Returns a Binding object, describing the variable and method bindings at the point of call. This object can be used when calling eval to execute the evaluated command in this environment. See also the description of class Binding. def get_binding(param) return binding end b = get_binding("hello") eval("param", b) #=> "hello"

number_to_percentage

number_to_percentage(number, options = {}) Instance Public methods Formats a number as a percentage string (e.g., 65%). You can customize the format in the options hash. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the precision of the number (defaults to 3). :significant - If true, precision will be the # of significant_digits. If false, the # of fractional digits (defaults to false). :separator - Sets the separ

x

x(win) Class Public methods