Class: Emfsvg::Svg::Elements::Path
- Inherits:
-
Emfsvg::Svg::Element
- Object
- Emfsvg::Svg::Element
- Emfsvg::Svg::Elements::Path
- Defined in:
- lib/emfsvg/svg/elements/path.rb
Overview
Constant Summary collapse
- ELEMENT_NAME =
"path"
Instance Attribute Summary collapse
-
#clip_path ⇒ Object
readonly
Returns the value of attribute clip_path.
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
-
#fill ⇒ Object
readonly
Returns the value of attribute fill.
-
#stroke ⇒ Object
readonly
Returns the value of attribute stroke.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(commands:, fill:, stroke:, clip_path: nil) ⇒ Path
constructor
A new instance of Path.
Methods inherited from Emfsvg::Svg::Element
#children, #element_name, register
Constructor Details
#initialize(commands:, fill:, stroke:, clip_path: nil) ⇒ Path
Returns a new instance of Path.
13 14 15 16 17 18 |
# File 'lib/emfsvg/svg/elements/path.rb', line 13 def initialize(commands:, fill:, stroke:, clip_path: nil) @commands = commands @fill = fill @stroke = stroke @clip_path = clip_path end |
Instance Attribute Details
#clip_path ⇒ Object (readonly)
Returns the value of attribute clip_path.
11 12 13 |
# File 'lib/emfsvg/svg/elements/path.rb', line 11 def clip_path @clip_path end |
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
11 12 13 |
# File 'lib/emfsvg/svg/elements/path.rb', line 11 def commands @commands end |
#fill ⇒ Object (readonly)
Returns the value of attribute fill.
11 12 13 |
# File 'lib/emfsvg/svg/elements/path.rb', line 11 def fill @fill end |
#stroke ⇒ Object (readonly)
Returns the value of attribute stroke.
11 12 13 |
# File 'lib/emfsvg/svg/elements/path.rb', line 11 def stroke @stroke end |