Module: Computering::Dsl
- Included in:
- Cmd
- Defined in:
- lib/computering/dsl.rb,
lib/computering/dsl/link.rb,
lib/computering/dsl/text.rb,
lib/computering/dsl/command.rb,
lib/computering/dsl/headline.rb
Defined Under Namespace
Classes: Command, Headline, Link, Text
Instance Method Summary
collapse
Instance Method Details
#command(text) ⇒ Object
11
12
13
|
# File 'lib/computering/dsl.rb', line 11
def command(text)
self.items += Command.from_text(text)
end
|
#headline(text) ⇒ Object
3
4
5
|
# File 'lib/computering/dsl.rb', line 3
def headline(text)
self.items += Headline.from_text(text)
end
|
#link(text, link) ⇒ Object
15
16
17
|
# File 'lib/computering/dsl.rb', line 15
def link(text, link)
self.items += Link.from_text(text, link)
end
|
#paragraph(text) ⇒ Object
7
8
9
|
# File 'lib/computering/dsl.rb', line 7
def paragraph(text)
self.items += Text.from_text(text)
end
|