22. rake
rule '.o' => '.c' do |t|
sh "cc -c -o #{t.name} #{t.source}"
end
file 'hello' => ['hello.o'] do
sh 'cc -o hello hello.o'
end
http://ja.wikipedia.org/wiki/Rake
23. rspec
describe Array, "when empty" do
before do
@empty_array = []
end
it "should be empty" do
@empty_array.should be_empty
end
http://jp.rubyist.net/magazine/?0021-Rspec
75. DSLクラス
Public Sub text(param As String)
collection.Add "テキスト:" & param
End Sub
Public Sub title(param As String)
collection.Add "タイトル:" & param
End Sub
76. 解釈・実行
Dim dsl As New dsl
Dim r As Range
For Each r In ActiveSheet.UsedRange.Rows
CallByName dsl, r.Columns(2),
VbMethod, r.Columns(3)
Next r
dsl.disp