はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    新内閣発足

『Ruby-Doc.org: Documenting the Ruby Language』

  • 人気
  • 新着
  • すべて
  • Class: String (Ruby 2.4.0)

    3 users

    ruby-doc.org

    Returns a new string object containing a copy of str. The optional enc argument specifies the encoding of the new string. If not specified, the encoding of str (or ASCII-8BIT, if str is not specified) is used. The optional size argument specifies the size of internal buffer. This may improve performance, when the string will be concatenated many times (and call many realloc). static VALUE rb_str_i

    • テクノロジー
    • 2016/12/30 20:00
    • Class: Digest::SHA2 (Ruby 1.9.3)

      3 users

      ruby-doc.org

      # File digest/sha2/lib/sha2.rb, line 26 def initialize(bitlen = 256) case bitlen when 256 @sha2 = Digest::SHA256.new when 384 @sha2 = Digest::SHA384.new when 512 @sha2 = Digest::SHA512.new else raise ArgumentError, "unsupported bit length: %s" % bitlen.inspect end @bitlen = bitlen end

      • テクノロジー
      • 2015/10/06 11:24
      • api
      • ruby
      • Module: MiniTest::Assertions (Ruby 2.0.0)

        4 users

        ruby-doc.org

        # File minitest/unit.rb, line 88 def self.diff @diff = if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ then "diff.exe -u" else if system("gdiff", __FILE__, __FILE__) "gdiff -u" # solaris and kin suck elsif system("diff", __FILE__, __FILE__) "diff -u" else nil end end unless defined? @diff @diff end

        • テクノロジー
        • 2015/08/21 11:55
        • api
        • ruby
        • Class: Array (Ruby 2.2.0)

          3 users

          ruby-doc.org

          Returns a new array populated with the given objects. Array.[]( 1, 'a', /^A/ ) # => [1, "a", /^A/] Array[ 1, 'a', /^A/ ] # => [1, "a", /^A/] [ 1, 'a', /^A/ ] # => [1, "a", /^A/] static VALUE rb_ary_s_create(int argc, VALUE *argv, VALUE klass) { VALUE ary = ary_new(klass, argc); if (argc > 0 && argv) { ary_memcpy(ary, 0, argc, argv); ARY_SET_LEN(ary, argc); } return ary; } Returns a new array. In t

          • テクノロジー
          • 2015/03/11 01:48
          • Module: OpenURI (Ruby 2.1.1)

            6 users

            ruby-doc.org

            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

            • テクノロジー
            • 2014/10/20 18:04
            • Index of Files, Classes & Methods in Ruby 2.0.0 (Ruby 2.0.0)

              5 users

              ruby-doc.org

              CARGF CArgumentError CArray CBasicObject CBignum CBinding CClass MComparable CComplex CComplex::compatible CContinuation CData CDir CENV CEOFError CEncoding CEncoding::CompatibilityError CEncoding::Converter CEncoding::ConverterNotFoundError CEncoding::InvalidByteSequenceError CEncoding::UndefinedConversionError CEncodingError MEnumerable CEnumerator CEnumerator::Generator CEnumerator::Lazy CEnume

              • テクノロジー
              • 2013/09/22 02:08
              • Ruby
              • Module: SecureRandom (Ruby 1.9.3)

                3 users

                ruby-doc.org

                ::base64 generates a random base64 string. The argument n specifies the length of the random length. The length of the result string is about 4/3 of n. If n is not specified, 16 is assumed. It may be larger in future. The result may contain A-Z, a-z, 0-9, “+”, “/” and “=”. p SecureRandom.base64 #=> "/2BuBuLf3+WfSKyQbRcc/A==" p SecureRandom.base64 #=> "6BbW0pxO0YENxn38HMUbcQ==" If secure random num

                • テクノロジー
                • 2013/09/07 19:18
                • Class: Regexp (Ruby 2.0.0)

                  3 users

                  ruby-doc.org

                  Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more 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, or extractin

                  • テクノロジー
                  • 2013/05/15 09:26
                  • regexp
                  • ruby
                  • Index of Files, Classes & Methods in Ruby mruby (Ruby mruby)

                    3 users

                    ruby-doc.org

                    CA CA::B CAddrinfo CArgumentError CArray CBase CBasicSocket CBinTest_MrubyBinDebugger MCRubyExtension MComparable CComplex CComplexLikeNumeric CCustomExp CDerived CEOFError MEnumerable CEnumerator CEnumerator::Chain CEnumerator::Generator CEnumerator::Lazy CEnumerator::Yielder MErrno CFile MFile::Constants CFile::FileError CFile::NoFileError CFile::PermissionError CFile::UnableToStat CFixnum MFloa

                    • テクノロジー
                    • 2013/04/22 12:38
                    • mruby
                    • Module: Enumerable (Ruby 2.0.0)

                      4 users

                      ruby-doc.org

                      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

                      • テクノロジー
                      • 2013/03/08 11:17
                      • フォント
                      • ブックマーク バー
                      • Index of Files, Classes & Methods in Ruby 2.0 (Ruby 2.0)

                        7 users

                        ruby-doc.org

                        CARGF CArgumentError CArray CBasicObject CBignum CBinding CClass MComparable CComplex CComplex::compatible CContinuation CData CDir CENV CEOFError CEncoding CEncoding::CompatibilityError CEncoding::Converter CEncoding::ConverterNotFoundError CEncoding::InvalidByteSequenceError CEncoding::UndefinedConversionError CEncodingError MEnumerable CEnumerator CEnumerator::Generator CEnumerator::Lazy CEnume

                        • 暮らし
                        • 2013/03/01 14:10
                        • ruby
                        • Class: TracePoint (Ruby 2.0.0)

                          4 users

                          ruby-doc.org

                          A class that provides the functionality of Kernel#set_trace_func in a nice Object-Oriented API. Example¶ ↑ We can use TracePoint to gather information specifically for exceptions: trace = TracePoint.new(:raise) do |tp| p [tp.lineno, tp.event, tp.raised_exception] end #=> #<TracePoint:0x007f786a452448> trace.enable #=> #<TracePoint:0x007f786a452448> 0 / 0 #=> [5, :raise, #<ZeroDivisionError: divide

                          • テクノロジー
                          • 2013/02/25 10:30
                          • ruby
                          • Class: CSV (Ruby 1.9.3)

                            4 users

                            ruby-doc.org

                            This class provides a complete interface to CSV files and data. It offers tools to enable you to read and write to and from Strings or IO objects, as needed. Reading¶ ↑ From a File¶ ↑ A Line at a Time¶ ↑ CSV.foreach("path/to/file.csv") do |row| # use row here... end All at Once¶ ↑ arr_of_arrs = CSV.read("path/to/file.csv") From a String¶ ↑ A Line at a Time¶ ↑ CSV.parse("CSV,data,String") do |row|

                            • テクノロジー
                            • 2013/01/02 13:38
                            • ruby
                            • Class: CSV (Ruby 1.9.2)

                              4 users

                              ruby-doc.org

                              This class provides a complete interface to CSV files and data. It offers tools to enable you to read and write to and from Strings or IO objects, as needed. Reading¶ ↑ From a File¶ ↑ A Line at a Time¶ ↑ CSV.foreach("path/to/file.csv") do |row| # use row here... end All at Once¶ ↑ arr_of_arrs = CSV.read("path/to/file.csv") From a String¶ ↑ A Line at a Time¶ ↑ CSV.parse("CSV,data,String") do |row|

                              • テクノロジー
                              • 2012/11/26 01:28
                              • CSV
                              • ruby
                              • Class: String (Ruby 1.9.3)

                                6 users

                                ruby-doc.org

                                A String object holds and manipulates an arbitrary sequence of bytes, typically representing characters. String objects may be created using String::new or as literals. Because of aliasing issues, users of strings should be aware of the methods that modify the contents of a String object. Typically, methods with names ending in “!'' modify their receiver, while those without a “!'' return a new St

                                • テクノロジー
                                • 2012/05/06 13:59
                                • Ruby
                                • rails
                                • プログラミング
                                • Web
                                • Module: Enumerable (Ruby 1.9.3)

                                  7 users

                                  ruby-doc.org

                                  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

                                  • テクノロジー
                                  • 2012/02/17 10:30
                                  • ruby
                                  • Rails
                                  • Index of Files, Classes & Methods in Ruby 1.9.3 (Ruby 1.9.3)

                                    5 users

                                    ruby-doc.org

                                    CARGF CArgumentError CArray CBasicObject CBignum CBinding CClass MComparable CComplex CContinuation CData CDir CENV CEOFError CEncoding CEncoding::CompatibilityError CEncoding::Converter CEncoding::ConverterNotFoundError CEncoding::InvalidByteSequenceError CEncoding::UndefinedConversionError CEncodingError MEnumerable CEnumerator CEnumerator::Generator CEnumerator::Yielder MErrno CException CFalse

                                    • テクノロジー
                                    • 2011/12/09 11:21
                                    • Ruby
                                    • Index of Classes & Methods in Ruby 1.8.7 (Ruby 1.8.7)

                                      4 users

                                      ruby-doc.org

                                      CArgumentError CArray CBignum CBinding CClass MComparable CContinuation CData CDir CEOFError MEnumerable CEnumerable::Enumerator MErrno CException CFalseClass CFile MFile::Constants CFile::Stat MFileTest CFixnum CFloat CFloatDomainError MGC CHash CIO CIOError CIndexError CInteger CInterrupt MKernel CLoadError CLocalJumpError MMarshal CMatchData MMath CMethod CModule CNameError CNameError::message

                                      • テクノロジー
                                      • 2008/10/04 08:40
                                      • Programming Ruby: The Pragmatic Programmer's Guide

                                        19 users

                                        ruby-doc.org

                                        <body bgcolor="white"> Click <a href="html/index.html">here</a> for a non-frames version of this page. </body>

                                        • テクノロジー
                                        • 2007/09/26 20:52
                                        • Ruby
                                        • reference
                                        • tutorial
                                        • programming
                                        • book
                                        • *programming
                                        • ブックマーク バー
                                        • RDoc Documentation

                                          32 users

                                          ruby-doc.org

                                          Class and Module Index ARGF ArgumentError Array BasicObject Binding Class ClosedQueueError Comparable Complex Continuation Data Dir ENV EOFError Encoding Encoding::CompatibilityError Encoding::Converter Encoding::ConverterNotFoundError Encoding::InvalidByteSequenceError Encoding::UndefinedConversionError EncodingError Enumerable Enumerator Enumerator::ArithmeticSequence Enumerator::Chain Enumerato

                                          • テクノロジー
                                          • 2005/07/23 03:55
                                          • ruby
                                          • rdoc
                                          • reference
                                          • api
                                          • ライブラリ
                                          • library
                                          • RDoc Documentation

                                            28 users

                                            ruby-doc.org

                                            Class and Module Index ARGF ArgumentError Array BasicObject Binding Class ClosedQueueError Comparable Complex Continuation Data Dir ENV EOFError Encoding Encoding::CompatibilityError Encoding::Converter Encoding::ConverterNotFoundError Encoding::InvalidByteSequenceError Encoding::UndefinedConversionError EncodingError Enumerable Enumerator Enumerator::ArithmeticSequence Enumerator::Chain Enumerato

                                            • テクノロジー
                                            • 2005/06/11 08:15
                                            • ruby
                                            • rdoc
                                            • programming
                                            • manual
                                            • reference
                                            • Ruby-Doc.org: Documenting the Ruby Language

                                              176 users

                                              ruby-doc.org

                                              Current Ruby Releases These are the complete API documents for base classes, modules, and included libraries in the current stables releases of Ruby. Complete API docs for Ruby 3.4.1 Complete API docs for Ruby 3.3.7 Complete API docs for Ruby 3.2.6 Complete API docs for Ruby 3.1.6 Complete API docs for Ruby 3.0.7 Older Ruby Releases Complete 3.3.6 Complete 3.3.5 Complete 3.3.4 Complete 3.3.3 Compl

                                              • 暮らし
                                              • 2005/02/11 14:25
                                              • ruby
                                              • reference
                                              • rdoc
                                              • document
                                              • documentation
                                              • manual
                                              • リファレンス
                                              • programming
                                              • api
                                              • doc

                                              このページはまだ
                                              ブックマークされていません

                                              このページを最初にブックマークしてみませんか?

                                              『Ruby-Doc.org: Documenting the Ruby Language』の新着エントリーを見る

                                              キーボードショートカット一覧

                                              j次のブックマーク

                                              k前のブックマーク

                                              lあとで読む

                                              eコメント一覧を開く

                                              oページを開く

                                              はてなブックマーク

                                              • 総合
                                              • 一般
                                              • 世の中
                                              • 政治と経済
                                              • 暮らし
                                              • 学び
                                              • テクノロジー
                                              • エンタメ
                                              • アニメとゲーム
                                              • おもしろ
                                              • アプリ・拡張機能
                                              • 開発ブログ
                                              • ヘルプ
                                              • お問い合わせ
                                              • ガイドライン
                                              • 利用規約
                                              • プライバシーポリシー
                                              • 利用者情報の外部送信について
                                              • ガイドライン
                                              • 利用規約
                                              • プライバシーポリシー
                                              • 利用者情報の外部送信について

                                              公式Twitter

                                              • 公式アカウント
                                              • ホットエントリー

                                              はてなのサービス

                                              • はてなブログ
                                              • はてなブログPro
                                              • 人力検索はてな
                                              • はてなブログ タグ
                                              • はてなニュース
                                              • ソレドコ
                                              • App Storeからダウンロード
                                              • Google Playで手に入れよう
                                              Copyright © 2005-2025 Hatena. All Rights Reserved.
                                              設定を変更しましたx