class Strut::DocumentBuilder
Public Class Methods
new()
click to toggle source
# File lib/strut/document_builder.rb, line 5 def initialize @commands = [] end
Public Instance Methods
append_command(command)
click to toggle source
# File lib/strut/document_builder.rb, line 9 def append_command(command) @commands << command end
document()
click to toggle source
# File lib/strut/document_builder.rb, line 13 def document Document.new(@commands) end