Method: Markdoc::Sequence::Diagram#initialize
- Defined in:
- lib/markdoc/sequence.rb
#initialize(input, options = {}) ⇒ Diagram
Returns a new instance of Diagram.
222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/markdoc/sequence.rb', line 222 def initialize(input, = {}) self.input = input self.output = [] self.roles = [] self. = [] self.rows = 0 self.attributes = DEFAULTS.dup .each do |key, value| attributes.merge!(key => value) end end |