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
In math, a unary operation is an operation with a single input. In Ruby, a unary operator is an operator which only takes a single ‘argument’ in the form of a receiver. For example, the – on -5 or ! on !true. In contrast, a binary operator, such as in 2 + 3, deals with two arguments. Here, 2 and 3 (which become one receiver and one argument in a method call to +). Ruby only has a handful of unary
Rails勉強会@東京第42回に行ってきました。 RSpec 前半はまだあまり慣れていないRSpecののセッションに参加しました! 概要 Rubyで、Specification(仕様)を先に書く開発手法だからRSpecという名前なのかな。 RSpecを一言でいえば「printlnの代わり」。 動作確認するときにprintlnの代わりにRSpec使うと便利という意味。 Rails開発では、controllerのロジックは薄く、modelに機能を集約するのがよいので、RSpecはmodelだけに使うのがよいとのこと。 コード 後半は id:moro さんに、Skip Wikiのspecファイルのnote_spec.rbのソースコードを見せて頂きながら、説明して頂きました。 RSpecは自明な部分とか全部をテストするときりがないので、キモになる部分をテストする。 id:moro もろはしさんのキ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く