Class: RubyPost::Dashed
- Inherits:
-
PathOption
- Object
- Object
- Option
- PathOption
- RubyPost::Dashed
- Defined in:
- lib/options.rb
Overview
dased path there are a plethora of dashing options. Only implemented evenly at present.
Instance Method Summary collapse
- #compile ⇒ Object
-
#evenly ⇒ Object
evenly dashed line.
-
#initialize(t = 'evenly') ⇒ Dashed
constructor
A new instance of Dashed.
-
#type(s) ⇒ Object
set the type with the metapost command s.
-
#withdots ⇒ Object
dahed line with dots inbetween dashes.
Constructor Details
#initialize(t = 'evenly') ⇒ Dashed
Returns a new instance of Dashed.
80 81 82 |
# File 'lib/options.rb', line 80 def initialize(t='evenly') @type = t end |
Instance Method Details
#compile ⇒ Object
102 103 104 |
# File 'lib/options.rb', line 102 def compile 'dashed ' + @type end |
#evenly ⇒ Object
evenly dashed line
85 86 87 88 |
# File 'lib/options.rb', line 85 def evenly @type = 'evenly' self end |
#type(s) ⇒ Object
set the type with the metapost command s.
97 98 99 100 |
# File 'lib/options.rb', line 97 def type(s) @type = s self end |
#withdots ⇒ Object
dahed line with dots inbetween dashes
91 92 93 94 |
# File 'lib/options.rb', line 91 def withdots @type = 'withdots' self end |