by_col

by_col() Instance Public methods Returns a duplicate table object, in column mode. This is handy for chaining in a single call without changing the table mode, but be aware that this method can consume a fair amount of memory for bigger data sets. This method returns the duplicate table for chaining. Don't chain destructive methods (like []=()) this way though, since you are working with a duplicate.

new

new(*args) Class Public methods

beginning_of_month

beginning_of_month() Instance Public methods Returns a new date/time at the start of the month. DateTime objects will have a time set to 0:00. at_beginning_of_month

deprecate

deprecate(*method_names) Instance Public methods deprecate :foo deprecate bar: 'message' deprecate :foo, :bar, baz: 'warning!', qux: 'gone!' You can also use custom deprecator instance: deprecate :foo, deprecator: MyLib::Deprecator.new deprecate :foo, bar: "warning!", deprecator: MyLib::Deprecator.new Custom deprecators must respond to deprecation_warning(deprecated_method_name, message, caller_backtrace) method where you can implement your custom warning behavior. class MyLib::D

increment

increment(attribute, by = 1) Instance Public methods Initializes attribute to zero if nil and adds the value passed as by (default is 1). The increment is performed directly on the underlying attribute, no setter is invoked. Only makes sense for number-based attributes. Returns self.

tag

tag(name, txt) Instance Public methods

<=>

==(other) Instance Public methods Equivalent to String#<=>. class BlogPost extend ActiveModel::Naming end BlogPost.model_name <=> 'BlogPost' # => 0 BlogPost.model_name <=> 'Blog' # => 1 BlogPost.model_name <=> 'BlogPosts' # => -1

demoIMovie

demoIMovie(t) Instance Public methods Demo: iMovie

parse_set_cookie

parse_set_cookie(str) Class Public methods Parses the cookie in str

polymorphic_url

polymorphic_url(record_or_hash_or_array, options = {}) Instance Public methods Constructs a call to a named RESTful route for the given record and returns the resulting URL string. For example: # calls post_url(post) polymorphic_url(post) # => "http://example.com/posts/1" polymorphic_url([blog, post]) # => "http://example.com/blogs/1/posts/1" polymorphic_url([:admin, blog, post]) # => "http://example.com/admin/blogs/1/posts/1" polymorphic_url([user, :blog, post]) # => "