Class: Wicket::Commands::Z
- Inherits:
-
Wicket::Command
- Object
- Wicket::Command
- Wicket::Commands::Z
- Defined in:
- lib/wicket/commands/z.rb
Constant Summary collapse
- ARGS =
1
- ARG_LIST =
[]
Instance Attribute Summary
Attributes inherited from Wicket::Command
Instance Method Summary collapse
- #cursor_end ⇒ Object
-
#initialize(absolute, cursor_start, subpath, opts) ⇒ Z
constructor
A new instance of Z.
- #to_svg(opts = {}) ⇒ Object
Methods inherited from Wicket::Command
#absolute_x, #absolute_y, #arguments, from_code, #subpath=, #to_wkt
Constructor Details
#initialize(absolute, cursor_start, subpath, opts) ⇒ Z
Returns a new instance of Z.
7 8 9 10 11 |
# File 'lib/wicket/commands/z.rb', line 7 def initialize(absolute,cursor_start,subpath,opts) @cursor_start = cursor_start @subpath = subpath @opts = opts end |
Instance Method Details
#cursor_end ⇒ Object
13 14 15 |
# File 'lib/wicket/commands/z.rb', line 13 def cursor_end @subpath.first_command.cursor_end end |
#to_svg(opts = {}) ⇒ Object
17 18 19 |
# File 'lib/wicket/commands/z.rb', line 17 def to_svg(opts={}) "Z" end |