Module: BenchScript

Defined in:
lib/xamplr/test-support/bench-script.rb

Class Method Summary collapse

Class Method Details

.buildObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/xamplr/test-support/bench-script.rb', line 3

def BenchScript.build
  return Thing.new{ | bt |
    bt.new_thing("thing") { | t |
      t.new_stuff.kind = "stuff1"
      t.new_description{ | d |
        d.kind = "desc1"
        d << "hello "
        d.new_emph.content = "there"
        d << "! How "
        d.new_emph.content = "are"
        d << " you?"
      }
    }
  }
end