clear

clear() Instance Public methods Equivalent to delete_all. The difference is that returns self, instead of an array with the deleted objects, so methods can be chained. See delete_all for more information.

each_with_object

e.with_object(obj) {|(*args), obj| ... }e.with_object(obj) Instance Public methods Iterates the given block for each element with an arbitrary object, obj, and returns obj If no block is given, returns a new Enumerator. Example to_three = Enumerator.new do |y| 3.times do |x| y << x end end to_three_with_string = to_three.with_object("foo") to_three_with_string.each do |x,string| puts "#{string}: #{x}" end # => foo:0 # => foo:1 # => foo:2

writer

writer() Instance Public methods

remove

remove(*args) Instance Public methods Alias for: delete

step

num.step(limit[, step]) {|i| block } â selfnum.step(limit[, step]) â an_enumerator Instance Public methods Invokes block with the sequence of numbers starting at num, incremented by step (default 1) on each call. The loop finishes when the value to be passed to the block is greater than limit (if step is positive) or less than limit (if step is negative). If all the arguments are integers, the loop operates using an integer counter. If any of the arguments are flo

_invoke_without_enc 2

_invoke_without_enc(*args) Instance Public methods

assert_redirected_to

assert_redirected_to(options = {}, message=nil) Instance Public methods Assert that the redirection options passed in match those of the redirect called in the latest action. This match can be partial, such that assert_redirected_to(controller: "weblog") will also match the redirection of redirect_to(controller: "weblog", action: "show") and so on. # assert that the redirection was to the "index" action on the WeblogController assert_redirected_to controller: "weblog", action: "ind

line_trace_all

line_trace_all() Instance Public methods Experimental MRI specific feature, only available as C level api. Returns all specified_line events.

new

new(tree, pos, parent=nil, keys={}) Class Public methods

json_create

json_create(o) Instance Public methods Raw Strings are JSON Objects (the raw bytes are stored in an array for the key ârawâ). The Ruby String can be created by this module method.