Module: YUML::Note

Defined in:
lib/yuml/note.rb

Overview

Represents a yUML Note

Class Method Summary collapse

Class Method Details

.create(body, options = {}) ⇒ Object



6
7
8
9
# File 'lib/yuml/note.rb', line 6

def create(body, options = {})
  color = options[:color] || 'cornsilk'
  "[note: #{body}{bg:#{color}}]"
end