reload

reload() Instance Public methods Reloads the collection from the database. Returns self. Equivalent to collection(true). class Person < ActiveRecord::Base has_many :pets end person.pets # fetches pets from the database # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets # uses the pets cache # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets.reload # fetches pets from the database # => [#<Pet id: 1, na

check_signedness

check_signedness(type, headers = nil, opts = nil, &b) Instance Public methods Returns the signedness of the given type. You may optionally specify additional headers to search in for the type. If the type is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the type name, in uppercase, prepended with SIGNEDNESS_OF_, followed by the type name, followed by =X where âXâ is positive integer if the type is unsigned and a negative intege

invalid_namespace?

invalid_namespace?() Class Public methods

rescue_template

rescue_template() Instance Public methods

allocate

class.allocate() â obj Instance Public methods Allocates space for a new object of class's class and does not call initialize on the new instance. The returned object must be an instance of class. klass = Class.new do def initialize(*args) @initialized = true end def initialized? @initialized || false end end klass.allocate.initialized? #=> false

as_json

as_json(*) Instance Public methods

reverse_merge

reverse_merge(other_hash) Instance Public methods Merges the caller into other_hash. For example, options = options.reverse_merge(size: 25, velocity: 10) is equivalent to options = { size: 25, velocity: 10 }.merge(options) This is particularly useful for initializing an options hash with default values.

add

add(severity, message = nil, progname = nil, &block) Instance Public methods Almost duplicates #add. progname is ignored.

key

key( keystr ) Instance Public methods

XMLDocument=

XMLDocument=(arg0) Instance Public methods VOID #XMLDocument