You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Module#prependとは Ruby2.0から追加された新機能のひとつに、Module#prependがあります。これはモジュールの機能を組み込む(Mix-inする)ときに使われるinclude、extendに続く3個目の方法であり、その特徴を簡潔に言うと Module#include に似た、Module#prepend という機能が追加されました。Module#include と異なり、prepend するクラス (モジュール) よりもメソッド探索順序を前にもってくる仕組みになります。 Rubyist Magazine - Ruby 2.0.0 の注意点やその他の新機能 というものです。 参考 Class: Module (Ruby 2.0.0) #19 Module#prepend の紹介 Moduleの使い方 Module#prependの機能を説明する前に、まずRubyのモ
Subject: [ruby-dev:29888] Re: Module duplicate From: "Kouhei Sutou" <kou@ z x . g Date: Tue, 7 Nov 2006 10:56:29 +0900 References: 29854 29857 29878 In-reply-to: 29878 須藤です. 06/11/06 に SASADA Koichi<ko1 / atdot.net> さんは書きました: > これは、どう判断するべきですかね。今回みたいに対応するべき問題なのか、 > 仕様が前の方がいいのか。須藤さん、これについてなんか意見ありませんか? 私は,同じメソッドが2回呼ばれるのが気持ち悪いので今までの仕様の方が いいです.ただ,1.9の仕様でも2回呼ばれないようにソースコードを(おそ らく簡単に)修正できると思うので,そんなに強く主張で
狠狠综合久久久久精品网站,大杳蕉在线影院在线播放,四虎永久在线精品视频,琪琪午夜成人理论福利片美容院,免费AV在线,男女裸体下面进入的免费视频,天天做天天爱夜夜夜爽毛片
ここでは、Rubyによるネットワークプログラミングの説明を行いたいと思います。 ここで対象としている読者は、ネットワークプログラミング初心者(もしくは入門者)です。 TCP 簡単なTCPサーバとクライアント TCPクライアント(エラー処理付き) 何度も受信できるTCPサーバ TCPサーバ(acceptした相手の確認) UDP UDPを使う UDPでブロードキャストを使う UDPでマルチキャストを使う(マルチキャストを送信する) UDPでマルチキャストを使う(マルチキャストを受信する) UDPでマルチキャストを使う(TTLを設定する) Web 簡単なHTTP GET(Net::HTTP) HTTP HEADと全てのHTTPヘッダの表示(Net::HTTP) HTTP POST(Net::HTTP) 簡単なRSSクライアント その他 IO::selectを使う IPアドレスからホスト名への変換
ご連絡:本日 25 日まで続けられた Ruby VM アドベントカレンダーは,世界の終了のため,保存していなかった部分が消えてしまいました.今後,随時復活させていきたいと思います.ご迷惑をおかけ致します. ご連絡:世界の終了によって失われた記憶を随時復旧させていますが,いくつかの記憶のかけらが宇宙的な何かのために欠落してしまっているようです.鋭意,そうさくしていきたいと思っております. 一覧: #1 RubyVM::InstructionSequence の拡張 #2 Kernel#caller_locations の紹介 #3 Kernel#caller_locations の性能 #4 vm_backtrace.c #5 メソッドディスパッチの高速化(RubyConf 2012 の紹介) #6 Thread.async_interrupt_timing の紹介 #7 Thread.as
This is the official blog of RubyMotion, a toolchain for iOS and OS X development that lets you do iPhone, iPad and Mac apps in Ruby. Follow us on Twitter to stay tuned with everything that's happening in the community! Not a RubyMotion user yet? Give it a spin today! It’s very sunny here in San Francisco, California, and we are super excited to give you a first sneak peek at the next major versi
At Stripe, we rely heavily on ruby and EventMachine to power various internal and external services. Over the last several months, we’ve known that one such service suffered from a gradual memory leak, that would cause its memory usage to gradually balloon from a normal ~50MB to multiple gigabytes. It was easy enough to work around the leak by adding monitoring and restarting the process whenever
概要 パーサとスキャナ プログラム言語のパーサの書きかたは昔からしつこく研究されてきており、 かなりしっかりした定石がある。よほど変な(または曖昧な)文法でない 限り、定石にのっていけば解決できるものだ。 まず最底辺には文字列を単語(トークンとも言う)の列に切り出す部 分がある。これをスキャナ(scanner)とかレクサ(lexer)と言 う。日本語で言うと字句解析器だが、言いにくいのでスキャナと呼ぼう。 スキャナというものが出てくる根底にはそもそも「単語の区切りには空白ある でしょ」という常識がある。そして実際にたいていのプログラミング 言語はそういう仕様になっている。そのほうが楽だからだ。 例えば古いFortranでは空白が意味を持たなかった。つまり空白を入れても 単語区切りとは限らないし、変数の途中で何の前触れもなく空白を挿入したり することもできた。ところが解析が恐ろしく面倒なもの
By Jeff Kreeftmeijer on 2010-11-15 (last updated on 2018-11-06) As you might have noticed, I’ve been spending some time trying to get running test suites with RSpec a bit better and faster over the last weeks. This week I looked into RSpec’s formatters. Aside from the red “F” RSpec will output when a spec fails, there’s no direct feedback that allows you to go fix things immediately. You’ll simply
技術部アルバイトの鈴木(@draftcode)です。 クックパッドが内部向けに開発・運用を行ってきた、分散テスト実行システムRRRSpecをオープンソースとして公開しました。RRRSpecは時間のかかる自動テストを分散処理することで、全体のテスト時間の短縮を狙うアプリケーションです。現在クックパッドでは17000を超えるテスト項目があり、マシン一台でテストを実行すると完了まで数時間かかります。このテストを60並列程度の分散処理で行うことで、平均8分から9分程度で完了できるようになりました。また、Amazon EC2のスポットインスタンスを利用することにより、大幅なコスト削減も同時に達成しました。 https://github.com/cookpad/rrrspec 分散テスト実行とは アプリケーションが大きくなるにつれて、自動テストの数も大きくなっていきます。クックパッドでは、非常に多くの
Testing Rake tasks is one of the most painful things I do as a Ruby developer. Even after extracting all the code out into a separate class (which helps a lot), I still want to make sure I test that the right classes got called correctly with the right arguments. I wanted the subject to be the task, where I could call invoke, check its prerequisites, etc. describe "cron:hourly" do its(:prerequisit
I'm experiencing trouble upgrading my rails 2.3.14 / ruby 1.8.7 app to 3.1.1/1.9.2 : I have some (ActiveRecord::StatementInvalid) "Mysql2::Error: MySQL server has gone away" errors happening sporadically. It's important to precise that I never had such issues with the 'mysql' gem on 2.3.14 and the exactly same db (so the bug shouldn't come from mysql (v5.5.10)). Example : $ rails c production Load
『るびま』は、Ruby に関する技術記事はもちろんのこと、Rubyist へのインタビューやエッセイ、その他をお届けするウェブ雑誌です。 Rubyist Magazine について 『Rubyist Magazine』、略して『るびま』は、Rubyist の Rubyist による、Rubyist とそうでない人のためのウェブ雑誌です。 最新号 Rubyist Magazine 0064 号 バックナンバー Rubyist Magazine 0064 号 Rubyist Magazine 0063 号 Rubyist Magazine 0062 号 Kaigi on Rails 特集号 RubyKaigi Takeout 2020 特集号 Rubyist Magazine 0061 号 Rubyist Magazine 0060 号 RubyKaigi 2019 直前特集号 Rubyist
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く