Results for: "max_by"

Returns the leading (‘type’) part of the media type from the value of field 'Content-Type', or nil if no such field exists; see Content-Type response header:

res = Net::HTTP.get_response(hostname, '/todos/1')
res['content-type'] # => "application/json; charset=utf-8"
res.main_type       # => "application"

A convenience method which is same as follows:

text ','
breakable
No documentation available
No documentation available

Wraps text to wrap characters and optionally indents by indent characters

Format large numbers with comma separators for readability

No documentation available
No documentation available

Returns the size of memory allocated by malloc().

Only available if ruby was built with CALC_EXACT_MALLOC_SIZE.

No documentation available

Deduce Ruby’s –program-prefix and –program-suffix from its install name

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

Returns true if other is a subdomain.

Example:

domain = Resolv::DNS::Name.create("y.z")
p Resolv::DNS::Name.create("w.x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("y.z").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("z").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("x.y.z.").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("w.z").subdomain_of?(domain) #=> false
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Does this dependency request match spec?

NOTE: matches_spec? matches prerelease versions. See also match?

No documentation available
Search took: 3ms  ·  Total Results: 593