Descendants of class Exception are used to communicate between Kernel#raise and rescue statements in begin ... end blocks. Exception objects carry information about the exception – its type (the exception's class name), an optional descriptive string, and optional traceback information. Exception subclasses may add additional information like NameError#name. Programs may make subclasses of Excepti
A Range represents an interval—a set of values with a beginning and an end. Ranges may be constructed using the s..e and s...e literals, or with ::new. Ranges constructed using .. run from the beginning to the end inclusively. Those created using ... exclude the end value. When used as an iterator, ranges return each value in the sequence. (-1..-5).to_a #=> [] (-5..-1).to_a #=> [-5, -4, -3, -2, -1
Namespace MODULE OptionParser::Acceptables MODULE OptionParser::Arguable MODULE OptionParser::Completion MODULE OptionParser::Regexp CLASS OptionParser::AC CLASS OptionParser::AmbiguousArgument CLASS OptionParser::AmbiguousOption CLASS OptionParser::CompletingHash CLASS OptionParser::InvalidArgument CLASS OptionParser::InvalidOption CLASS OptionParser::List CLASS OptionParser::MissingArgument CLAS
Threads are the Ruby implementation for a concurrent programming model. Programs that require multiple threads of execution are a perfect candidate for Ruby's Thread class. For example, we can create a new thread separate from the main thread's execution using ::new. thr = Thread.new { puts "Whats the big deal" } Then we are able to pause the execution of the main thread and allow our new thread t
Time is an abstraction of dates and times. Time is stored internally as the number of seconds with fraction since the Epoch, January 1, 1970 00:00 UTC. Also see the library module Date. The Time class treats GMT (Greenwich Mean Time) and UTC (Coordinated Universal Time) as equivalent. GMT is the older way of referring to these baseline times but persists in the names of calls on POSIX systems. All
Support for the Ruby 2.1 series ended on March 31 2017. See here for details. A Regexp holds a regular expression, used to match a pattern against strings. Regexps are created using the /.../ and %r{...} literals, and by the Regexp::new constructor. Regular expressions (regexps) are patterns which describe the contents of a string. They're used for testing whether a string contains a given pattern
OpenURI is an easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP. Example¶ ↑ It is possible to open an http, https or ftp URL as though it were a file: open("http://www.ruby-lang.org/") {|f| f.each_line {|line| p line} } The opened file has several getter methods for its meta-information, as follows, since it is extended by OpenURI::Meta. open("http://www.ruby-lang.org/en") {|f| f.each_lin
Support for the Ruby 2.1 series ended on March 31 2017. See here for details. webrick.rb webrick/accesslog.rb webrick/cgi.rb webrick/config.rb webrick/cookie.rb webrick/htmlutils.rb webrick/httpauth.rb webrick/httpauth/authenticator.rb webrick/httpauth/basicauth.rb webrick/httpauth/digestauth.rb webrick/httpauth/htdigest.rb webrick/httpauth/htgroup.rb webrick/httpauth/htpasswd.rb webrick/httpauth/
The Enumerable mixin provides collection classes with several traversal and searching methods, and with the ability to sort. The class must provide a method each, which yields successive members of the collection. If Enumerable#max, #min, or #sort is used, the objects in the collection must also implement a meaningful <=> operator, as these methods rely on an ordering between members of the collec
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く