[]

[](*types) Class Public methods

parse_content_type

parse_content_type(str) Instance Public methods

struct

struct(signature) Instance Public methods Creates a class to wrap the C struct described by signature. MyStruct = struct ['int i', 'char c']

concat

concat(string) Instance Public methods The preferred method of outputting text in your views is to use the <%= âtextâ %> eRuby syntax. The regular puts and print methods do not operate as expected in an eRuby code block. If you absolutely must output text within a non-output code block (i.e., <% %>), you can use the concat method. <% concat "hello" # is the equivalent of <%= "hello" %> if logged_in concat "Logged in!" else concat li

selection_present?

selection_present?() Instance Public methods

to_der

attr.to_der => string Instance Public methods

new

new(options, characters = 100, paragraphs = 3, markup = nil) Class Public methods Creates a new ToHtmlSnippet formatter that will cut off the input on the next word boundary after the given number of characters or paragraphs of text have been encountered.

gem

gem(gem_name, *requirements) Instance Private methods Use #gem to activate a specific version of gem_name. requirements is a list of version requirements that the specified gem must match, most commonly â= example.version.numberâ. See Gem::Requirement for how to specify a version requirement. If you will be activating the latest version of a gem, there is no need to call #gem, Kernel#require will do the right thing for you. #gem returns true if the gem was activated, otherwise fal

reset

reset() Instance Public methods Unloads the association. Returns self. 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.reset # clears the pets cache person.pets # fetches pets from the database # => [#<Pet id: 1, name: "Snoop",

actual_hash_displayof

actual_hash_displayof(fnt, option=nil) Class Public methods