parser

parser() Class Public methods Returns a default parser

new

new(type = nil, *items) Class Public methods Creates a new list of type with items. Valid list types are: :BULLET, :LABEL, :LALPHA, :NOTE, :NUMBER, :UALPHA

setup_maker

setup_maker(maker) Instance Public methods

move_column

move_column(src, target) Instance Public methods Also aliased as: movecolumn

to_json

to_json(*a) Instance Public methods

respond_to_without_attributes?

respond_to_without_attributes?(method, include_private_methods = false) Instance Public methods A Person instance with a name attribute can ask person.respond_to?(:name), person.respond_to?(:name=), and person.respond_to?(:name?) which will all return true. respond_to?

new

new(*args) Class Public methods

month_field

month_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âmonthâ. month_field("user", "born_on") # => <input id="user_born_on" name="user[born_on]" type="month" /> The default value is generated by trying to call strftime with â%Y-%mâ on the object's value, which makes it behave as expected for instances of DateTime and ActiveSupport::TimeWithZone. @user.born_on = Date.new(1984, 1, 27) month_field("user", "born_on") # => <

distance_of_time_in_words

distance_of_time_in_words(from_time, to_time = 0, options = {}) Instance Public methods Reports the approximate distance in time between two Time, Date or DateTime objects or integers as seconds. Pass include_seconds: true if you want more detailed approximations when distance < 1 min, 29 secs. Distances are reported based on the following table: 0 <-> 29 secs # => less than a minute 30 secs <-> 1 min, 29

module_exec

mod.module_exec(arg...) {|var...| block } â obj Instance Public methods Evaluates the given block in the context of the class/module. The method defined in the block will belong to the receiver. class Thing end Thing.class_exec{ def hello() "Hello there!" end } puts Thing.new.hello() produces: Hello there!