Class: Emfsvg::Svg::PathData::Command

Inherits:
Struct
  • Object
show all
Defined in:
lib/emfsvg/svg/path_data/command.rb

Overview

One parsed SVG path command (e.g. "M 1 2" or "L 3 4"). letter preserves case (absolute uppercase vs relative lowercase).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



8
9
10
# File 'lib/emfsvg/svg/path_data/command.rb', line 8

def args
  @args
end

#letterObject

Returns the value of attribute letter

Returns:

  • (Object)

    the current value of letter



8
9
10
# File 'lib/emfsvg/svg/path_data/command.rb', line 8

def letter
  @letter
end

Instance Method Details

#absolute?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/emfsvg/svg/path_data/command.rb', line 9

def absolute?
  letter == letter.upcase
end