Class: Markdoc::Pseudocode::ActionLiteral
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Markdoc::Pseudocode::ActionLiteral
- Defined in:
- lib/markdoc/pseudocode.rb
Instance Method Summary collapse
Instance Method Details
#ends ⇒ Object
24 25 26 |
# File 'lib/markdoc/pseudocode.rb', line 24 def ends [id] end |
#id ⇒ Object
18 19 20 |
# File 'lib/markdoc/pseudocode.rb', line 18 def id sentence.id end |
#label ⇒ Object
21 22 23 |
# File 'lib/markdoc/pseudocode.rb', line 21 def label sentence.value end |
#out(file) ⇒ Object
15 16 17 |
# File 'lib/markdoc/pseudocode.rb', line 15 def out(file) file.write %Q(#{id} [shape=box label="#{label}"]\n) end |