build_heading

build_heading(level) Instance Public methods Builds a heading from the token stream level The level of heading to create Returns Returns an RDoc::Markup::Heading

new

new(tag, prefix, require_uri) Class Public methods

clear_reloadable_connections!

clear_reloadable_connections!() Instance Public methods Clears the cache which maps classes.

retrieve_connection_pool

retrieve_connection_pool(klass) Instance Public methods Retrieving the connection pool happens a lot so we cache it in @class_to_pool. This makes retrieving the connection pool O(1) once the process is warm. When a connection is established or removed, we invalidate the cache. Ideally we would use fetch here, as class_to_pool may sometimes be nil. However, benchmarking (gist.github.com/jonleighton/3552829) showed that fetch is significantly slower than []. So in the nil case, no ca

cget_strict

cget_strict(slot) Instance Public methods

hash

hash() Instance Public methods Compute a hash-code for this OpenStruct. Two hashes with the same content will have the same hash code (and will be eql?).

lex

lex(src, filename = '-', lineno = 1) Class Public methods Tokenizes the Ruby program and returns an array of an array, which is formatted like [[lineno, column], type, token]. require 'ripper' require 'pp' pp Ripper.lex("def m(a) nil end") #=> [[[1, 0], :on_kw, "def"], [[1, 3], :on_sp, " " ], [[1, 4], :on_ident, "m" ], [[1, 5], :on_lparen, "(" ], [[1, 6], :on_ident, "a" ], [[1, 7], :on_rparen, ")" ], [[1, 8], :on

method_missing

method_missing(cmd, *arg) Instance Public methods

add_platform

add_platform(platform) Instance Public methods append a platform to the list of mismatched platforms. Platforms are added via this instead of injected via the constructor so that we can loop over a list of mismatches and just add them rather than perform some kind of calculation mismatch summary before creation.

hash

meth.hash â integer Instance Public methods Returns a hash value corresponding to the method object.