class Architect::Note

A note in a class diagram

Attributes

graphnode[RW]

Public Class Methods

new(markup) click to toggle source
# File lib/architect/note.rb, line 7
def initialize(markup)
  matches = /note:(.+)/i.match(markup)
  @markup = matches[1].strip
  @style = {shape: "note", style: "filled", fillcolor: "lightgrey"}
end

Public Instance Methods

graph(g) click to toggle source
# File lib/architect/note.rb, line 13
def graph(g)
   @graphnode = g.add_nodes(@markup, @style)
end