Module: Mscgen
- Defined in:
- lib/mscgen.rb,
lib/mscgen/chart.rb,
lib/mscgen/entity.rb,
lib/mscgen/message.rb
Defined Under Namespace
Classes: Chart, Entity, Message
Constant Summary collapse
- @@mscgen_path =
"mscgen"
Class Method Summary collapse
- .escape(str) ⇒ Object
-
.path ⇒ Object
return mscgen command path.
-
.path=(path) ⇒ Object
set mscgen command path.
Class Method Details
.escape(str) ⇒ Object
6 7 8 |
# File 'lib/mscgen.rb', line 6 def self.escape(str) str.gsub(/(["\n])/){ "\\" + $1 } end |
.path ⇒ Object
return mscgen command path
17 18 19 |
# File 'lib/mscgen.rb', line 17 def self.path @@mscgen_path end |
.path=(path) ⇒ Object
set mscgen command path
13 14 15 |
# File 'lib/mscgen.rb', line 13 def self.path=(path) @@mscgen_path = path end |