acts_like?

acts_like?(duck) Instance Public methods A duck-type assistant method. For example, Active Support extends Date to define an acts_like_date? method, and extends Time to define acts_like_time?. As a result, we can do x.acts_like?(:time) and x.acts_like?(:date) to do duck-type-safe comparisons, since classes that we want to act like Time simply need to define an acts_like_time? method.

each

each(&block) Instance Public methods

run_in_isolation

run_in_isolation(&blk) Instance Public methods Crazy H4X to get this working in windows / jruby with no forking.

open

open(key) Instance Public methods

to_options

to_options() Instance Public methods Alias for: symbolize_keys

time_zone_select

time_zone_select(method, priority_zones = nil, options = {}, html_options = {}) Instance Public methods Wraps ActionView::Helpers::FormOptionsHelper#time_zone_select for form builders: <%= form_for @user do |f| %> <%= f.time_zone_select :time_zone, nil, include_blank: true %> <%= f.submit %> <% end %> Please refer to the documentation of the base helper for details.

load_seed

load_seed() Instance Public methods Load data from db/seeds.rb file. It can be used in to load engines' seeds, e.g.: Blog::Engine.load_seed

feel 2

feel() Instance Public methods

with_routing

with_routing() Instance Public methods A helper to make it easier to test different route configurations. This method temporarily replaces @routes with a new RouteSet instance. The new instance is yielded to the passed block. Typically the block will create some routes using set.draw { match ... }: with_routing do |set| set.draw do resources :users end assert_equal "/users", users_path end

process_node

process_node(node, result, options) Instance Public methods