lookup_ancestors

lookup_ancestors() Instance Public methods When localizing a string, it goes through the lookup returned by this method, which is used in ActiveModel::Name#human, ActiveModel::Errors#full_messages and #human_attribute_name.

set_value

set_value(val) Instance Public methods

nocbreak

nocbreak() Class Public methods Put the terminal into normal mode (out of cbreak mode). See ::cbreak for more detail.

new

new(ctype, args, abi = Fiddle::Function::DEFAULT, &block) Class Public methods Description Construct a new BlockCaller object. ctype is the C type to be returned args are passed the callback abi is the abi of the closure If there is an error in preparing the ffi_cif or ffi_prep_closure, then a RuntimeError will be raised. Example include Fiddle cb = Closure::BlockCaller.new(TYPE_INT, [TYPE_INT]) do |one| one end func = Function.new(cb, [TYPE_INT], TYPE_INT)

imagebind_append

imagebind_append(context, *args) Instance Public methods def #imagebind_append(*args) _bind_append_for_event_class(Event_for_Items, [path, 'bindImage'], *args) self end

scan

str.scan(pattern) â arraystr.scan(pattern) {|match, ...| block } â str Instance Public methods Both forms iterate through str, matching the pattern (which may be a Regexp or a String). For each match, a result is generated and either added to the result array or passed to the block. If the pattern contains no groups, each individual result consists of the matched string, $&. If the pattern contains groups, each individual result is itself an array co

cbreak

cbreak() Class Public methods Put the terminal into cbreak mode. Normally, the tty driver buffers typed characters until a newline or carriage return is typed. The ::cbreak routine disables line buffering and erase/kill character-processing (interrupt and flow control characters are unaffected), making characters typed by the user immediately available to the program. The ::nocbreak routine returns the terminal to normal (cooked) mode. Initially the terminal may or may not be in cb

simple_selector

simple_selector(statement, values, can_negate = true) Instance Protected methods Creates a simple selector given the statement and array of substitution values. Returns a hash with the values tag_name, attributes, pseudo (classes) and negation. Called the first time with can_negate true to allow negation. Called a second time with false since negation cannot be negated.

normalize

normalize( input, entities=nil, entity_filter=nil ) Instance Public methods Escapes all possible entities

clear

clear(options = nil) Instance Public methods Deletes all items from the cache. In this case it deletes all the entries in the specified file store directory except for .gitkeep. Be careful which directory is specified in your config file when using FileStore because everything in that directory will be deleted.