This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use moro-miso | |
# sudo gem install moro-miso | |
# http://d.hatena.ne.jp/moro/20090603/1244042258 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# メソッド単位に describe で分割するパターン | |
require 'spec_helper' | |
module Codebreaker | |
describe Marker do | |
let(:secret) { '1234' } | |
describe '#exact_match_count' do | |
subject { Marker.new(secret, guess).exact_match_count } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
class Foo | |
def self.show | |
'foo' | |
end | |
end | |
module Bar |