rubinius_skip

rubinius_skip(message = '') Instance Public methods Skips the current run on Rubinius using Minitest::Assertions#skip

restore_delivery_method

restore_delivery_method() Instance Public methods

progress_bar

progress_bar(int) Instance Public methods

present?

present?() Instance Public methods An object is present if it's not blank. @return [true, false]

presence_in

presence_in(another_object) Instance Public methods Returns the receiver if it's included in the argument otherwise returns nil. Argument must be any object which responds to #include?. Usage: params[:bucket_type].presence_in %w( project calendar ) This will throw an ArgumentError if the argument doesn't respond to #include?. @return [Object]

presence

presence() Instance Public methods Returns the receiver if it's present otherwise returns nil. object.presence is equivalent to object.present? ? object : nil For example, something like state = params[:state] if params[:state].present? country = params[:country] if params[:country].present? region = state || country || 'US' becomes region = params[:state].presence || params[:country].presence || 'US' @return [Object]

load_schema

load_schema() Instance Public methods

jruby_skip

jruby_skip(message = '') Instance Public methods Skips the current run on JRuby using Minitest::Assertions#skip

instance_variable_names

instance_variable_names() Instance Public methods Returns an array of instance variable names as strings including â@â. class C def initialize(x, y) @x, @y = x, y end end C.new(0, 1).instance_variable_names # => ["@y", "@x"]

instance_values

instance_values() Instance Public methods Returns a hash with string keys that maps instance variable names without â@â to their corresponding values. class C def initialize(x, y) @x, @y = x, y end end C.new(0, 1).instance_values # => {"x" => 0, "y" => 1}