module Computering::Dsl

Public Instance Methods

code(*text) click to toggle source
# File lib/computering/dsl.rb, line 23
def code(*text)
  self.items += Code.from_text(text)
end
command(*text) click to toggle source
# File lib/computering/dsl.rb, line 27
def command(*text)
  self.items += Command.from_text(text)
end
configure(&block) click to toggle source
# File lib/computering/dsl.rb, line 3
def configure(&block)
  Config.instance_eval(&block)
end
headline(*text) click to toggle source
# File lib/computering/dsl.rb, line 15
def headline(*text)
  self.items += Headline.from_text(text)
end
items() click to toggle source
# File lib/computering/dsl.rb, line 35
def items
  @items ||= []
end
items=(items) click to toggle source
# File lib/computering/dsl.rb, line 39
def items=(items)
  @items = items
end
list(*text) click to toggle source
# File lib/computering/dsl.rb, line 11
def list(*text)
  self.items += List.from_text(text)
end
paragraph(*text) click to toggle source
# File lib/computering/dsl.rb, line 19
def paragraph(*text)
  self.items += Text.from_text(text)
end
spec(name, &block) click to toggle source
# File lib/computering/dsl.rb, line 7
def spec(name, &block)
  self.items += Spec.from_block(name, block_source(name), &block)
end