pluralize

pluralize(count, singular, plural = nil) Instance Public methods Attempts to pluralize the singular word unless count is 1. If plural is supplied, it will use that when count is > 1, otherwise it will use the Inflector to determine the plural form. pluralize(1, 'person') # => 1 person pluralize(2, 'person') # => 2 people pluralize(3, 'person', 'users') # => 3 users pluralize(0, 'person') # => 0 people

add_expr_literal

add_expr_literal(src, code) Instance Public methods

permit!

permit!() Instance Public methods Sets the permitted attribute to true. This can be used to pass mass assignment. Returns self. class Person < ActiveRecord::Base end params = ActionController::Parameters.new(name: 'Francesco') params.permitted? # => false Person.new(params) # => ActiveModel::ForbiddenAttributesError params.permit! params.permitted? # => true Person.new(params) # => #<Person id: nil, name: "Francesco">

butPress

butPress(w,color) Instance Public methods Method that's invoked when the button embedded in the canvas is invoked.

permitted=

permitted=(new_permitted) Instance Protected methods

eval

eval(string [, binding [, filename [,lineno]]]) â obj Instance Public methods Evaluates the Ruby expression(s) in string. If binding is given, which must be a Binding object, the evaluation is performed in its context. If the optional filename and lineno parameters are present, they will be used when reporting syntax errors. def get_binding(str) return binding end str = "hello" eval "str + ' Fred'" #=> "hello Fred" eval "str + ' Fred'", get_binding("bye"

addtag

addtag(tag) Instance Public methods

namespaces=

namespaces=( namespaces={} ) Instance Public methods

to_feed

to_feed(rss, channel) Instance Public methods

num_or_nil

num_or_nil(p1) Class Public methods