Results for: "to_proc"

The cookie string suitable for use in an HTTP header

The HTTP version as show in the HTTP request and response. For example, “1.1”

Converts the contents of the database to an array of [key, value] arrays, and returns it.

Returns digest_obj.hexdigest().

indent

DEPRECATED This parameter is now ignored. See the formatters in the REXML::Formatters package for changing the output style.

Similar to Kernel#to_enum, except it returns a lazy enumerator. This makes it easy to define Enumerable methods that will naturally remain lazy if called from a lazy enumerator.

For example, continuing from the example in Kernel#to_enum:

# See Kernel#to_enum for the definition of repeat
r = 1..Float::INFINITY
r.repeat(2).first(5) # => [1, 1, 2, 2, 3]
r.repeat(2).class # => Enumerator
r.repeat(2).map{|n| n ** 2}.first(5) # => endless loop!
# works naturally on lazy enumerator:
r.lazy.repeat(2).class # => Enumerator::Lazy
r.lazy.repeat(2).map{|n| n ** 2}.first(5) # => [1, 1, 4, 4, 9]

Get the underlying pointer for ruby object val and return it as a Fiddle::Pointer object.

Returns the integer memory location of this pointer.

Cast this pointer to a ruby object.

ptr.to_str        => string
ptr.to_str(len)   => string

Returns the pointer contents as a string.

When called with no arguments, this method will return the contents with the length of this pointer’s size.

When called with len, a string of len bytes will be returned.

See to_s

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Same as IO.

Returns serialized iseq binary format data as a String object. A corresponding iseq object is created by RubyVM::InstructionSequence.load_from_binary() method.

String extra_data will be saved with binary data. You can access this data with RubyVM::InstructionSequence.load_from_binary_extra_data(binary).

Note that the translated binary data is not portable. You can not move this binary data to another machine. You can not use the binary data which is created by another version/another architecture of Ruby.

Collapses the row into a simple Hash. Be warned that this discards field order and clobbers duplicate fields.

Returns the row as a CSV String. Headers are not used. Equivalent to:

csv_row.fields.to_csv( options )

Returns the table as a complete CSV String. Headers will be listed first, then all of the field rows.

This method assumes you want the Table.headers(), unless you explicitly pass :write_headers => false.

Convert an object reference id to an object.

This implementation looks up the reference id in the local object space and returns the object it refers to.

Convert an object into a reference id.

This implementation returns the object’s __id__ in the local object space.

Convert a dRuby reference to the local object it refers to.

Search took: 3ms  ·  Total Results: 1871