Class: RubyPost::Plot
- Inherits:
-
GraphDataOption
- Object
- Object
- Option
- PathOption
- GraphDataOption
- RubyPost::Plot
- Defined in:
- lib/graph.rb
Overview
wraps the plot option for the graph macro
Instance Attribute Summary collapse
-
#dot_type ⇒ Object
writeonly
Sets the attribute dot_type.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(p = 'btex $\bullet$ etex') ⇒ Plot
constructor
default is a latex bullet.
Constructor Details
#initialize(p = 'btex $\bullet$ etex') ⇒ Plot
default is a latex bullet
172 173 174 |
# File 'lib/graph.rb', line 172 def initialize(p='btex $\bullet$ etex') @dot_type = p end |
Instance Attribute Details
#dot_type=(value) ⇒ Object (writeonly)
Sets the attribute dot_type
169 170 171 |
# File 'lib/graph.rb', line 169 def dot_type=(value) @dot_type = value end |
Instance Method Details
#compile ⇒ Object
176 177 178 |
# File 'lib/graph.rb', line 176 def compile 'plot ' + @dot_type.compile end |