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
29 30 31 |
# File 'lib/markdoc/pseudocode.rb', line 29 def ends [id] end |
#id ⇒ Object
21 22 23 |
# File 'lib/markdoc/pseudocode.rb', line 21 def id sentence.id end |
#label ⇒ Object
25 26 27 |
# File 'lib/markdoc/pseudocode.rb', line 25 def label sentence.value end |
#out(file) ⇒ Object
17 18 19 |
# File 'lib/markdoc/pseudocode.rb', line 17 def out(file) file.write %(#{id} [shape=box label="#{label}"]\n) end |