タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

rubyに関するmFumiのブックマーク (6)

  • NameBright - Coming Soon

    rubylearning.com is coming soon This domain is managed at

    mFumi
    mFumi 2014/06/23
  • Understanding Ruby Blocks, Procs and Lambdas - Reactive.TIPS - The Official Blog of Reactive.IO

    Blocks, Procs and lambdas (referred to as closures in Computer Science) are one of the most powerful aspects of Ruby, and also one of the most misunderstood. This is probably because Ruby handles closures in a rather unique way. Making things more complicated is that Ruby has four different ways of using closures, each of which is a tad bit different, and sometimes nonsensical. There are quite a f

    mFumi
    mFumi 2014/06/23
  • ReFe

    セット + リファレンス + Rubyソースコード 基セット + リファレンス 基セット (100KB) 旧バージョンのリスト クラス名とメソッド名から Ruby のリファレンスマニュアルのエントリを引く、 コマンドライン用のツールです。読みは「りふぇ」。 ri をパクって日語・RD に対応させたものです。 # 最も簡単な例 ~ % refe String concat String#concat --- self << other --- concat(other) 文字列 other の内容を self に連結します。 other が 0 から 255 の範囲の Fixnum である場合は その 1 バイトを末尾に追加します。 self を返します。 クラス名やメソッド名の補完機能があるので長いメソッド名を 全部入力する必要がありません。 例えば String#gsub! な

    mFumi
    mFumi 2010/05/04
  • Rubyソースコード完全解説 / 青木峰郎

    $Id: index.html,v 1.6 2004/07/20 23:08:12 aamine Exp $ この文書は書籍『Rubyソースコード完全解説』のHTML版です。 ただし初校段階の原稿をベースにしているため、 書籍では修正されている間違いが残っている場合があります。 予め御了承ください。 2004-02-16 に全章を公開しました。 目次 まえがき 序章 第 1 部「オブジェクト」 第 1 章「Ruby言語ミニマム」 第 2 章「オブジェクト」 第 3 章「名前と名前表」 第 4 章「クラス」 第 5 章「ガーベージコレクション」 第 6 章「変数と定数」 第 7 章「セキュリティ」 第 2 部「構文解析」 第 8 章「Ruby言語の詳細」 第 9 章「速習yacc」 第 10 章「パーサ」 第 11 章「状態付きスキャナ」 第 12 章「構文木の構築」 第 3 部「評価」 第

    mFumi
    mFumi 2010/03/17
  • termtter.org

    This domain is registered at Dynadot.com. Website coming soon. termtter.org 2024 著作権. 不許複製 プライバシーポリシー

    mFumi
    mFumi 2010/01/23
  • Rubyのblock、Proc、lambdaを理解する - このブログは証明できない。

    新年おめでとうございます。2009年の最初のネタはプログラミングのネタにすることにしました。 Rubyについてのステキなエントリーがあったので、紹介します。 no title 私は翻訳能力がないばかりか、リーディング能力も貧相です。ぜひ、原文を読んでみてください。 はじめに Rubyblock、Proc、lambdaはパワフルですが、解りにくい。Rubyはクロージャを使う方法が4つあって、それぞれチョットずつ違います。ここでは、そのへんを解説したいと思います。 Block もっとも簡単で、かつRubyっぽいと言えば、Blockですね。 array = [1, 2, 3, 4] array.collect! do |n| n ** 2 end puts array.inspect # => [1, 4, 9, 16] 何が起こっているか? まず、block付きでArrayの"collect

    mFumi
    mFumi 2010/01/23
  • 1