Class: RubyPost::Dashed

Inherits:
PathOption show all
Defined in:
lib/options.rb

Overview

dased path there are a plethora of dashing options. Only implemented evenly at present.

Instance Method Summary collapse

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

#compileObject



102
103
104
# File 'lib/options.rb', line 102

def compile
  'dashed ' + @type
end

#evenlyObject

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

#withdotsObject

dahed line with dots inbetween dashes



91
92
93
94
# File 'lib/options.rb', line 91

def withdots
  @type = 'withdots'
  self
end