mkdir(dirname) Instance Public methods Creates a remote directory.
meth[args, ...] â obj Instance Public methods Invokes the meth with the specified arguments, returning the method's return value. m = 12.method("+") m.call(3) #=> 15 m.call(20) #=> 32
setselection(itempath) Instance Public methods
time_ago_in_words(from_time, include_seconds_or_options = {}) Instance Public methods Like distance_of_time_in_words, but where to_time is fixed to Time.now. time_ago_in_words(3.minutes.from_now) # => 3 minutes time_ago_in_words(3.minutes.ago) # => 3 minutes time_ago_in_words(Time.now - 15.hours) # => about 15 hours time_ago_in_words(Time.now) # => less than a minute time_ago_in_words(Time.now
enum.take(n) â array Instance Public methods Returns first n elements from enum. a = [1, 2, 3, 4, 5, 0] a.take(3) #=> [1, 2, 3]
reset(value = nil, name = nil) Instance Public methods Generate a reset button Input element, as a String. This resets the values on a form to their initial values. value is the text displayed on the button. name is the name of this button. Alternatively, the attributes can be specified as a hash. reset # <INPUT TYPE="reset"> reset("reset") # <INPUT TYPE="reset" VALUE="reset"> reset("VALUE" => "reset", "ID" => "foo") # <INPUT TYPE="reset" VALUE="reset"
read(len=nil, buf=nil) Instance Public methods
ary.delete_if { |item| block } â aryary.delete_if â Enumerator Instance Public methods Deletes every element of self for which block evaluates to true. The array is changed instantly every time the block is called, not after the iteration is over. See also #reject! If no block is given, an Enumerator is returned instead. a = [ "a", "b", "c" ] a.delete_if {|x| x >= "b" } #=> ["a"]
create(chart, keys={}) Class Public methods
since(seconds) Instance Public methods Returns a new Time representing the time a number of seconds since the instance time in
Page 2161 of 2275