Class: Svg::Feature
- Inherits:
-
Object
- Object
- Svg::Feature
- Defined in:
- lib/svg.rb
Instance Attribute Summary collapse
-
#fill ⇒ Object
Returns the value of attribute fill.
-
#fill_opacity ⇒ Object
Returns the value of attribute fill_opacity.
-
#stroke ⇒ Object
Returns the value of attribute stroke.
-
#stroke_opacity ⇒ Object
Returns the value of attribute stroke_opacity.
-
#stroke_width ⇒ Object
Returns the value of attribute stroke_width.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
Instance Attribute Details
#fill ⇒ Object
Returns the value of attribute fill.
49 50 51 |
# File 'lib/svg.rb', line 49 def fill @fill end |
#fill_opacity ⇒ Object
Returns the value of attribute fill_opacity.
49 50 51 |
# File 'lib/svg.rb', line 49 def fill_opacity @fill_opacity end |
#stroke ⇒ Object
Returns the value of attribute stroke.
49 50 51 |
# File 'lib/svg.rb', line 49 def stroke @stroke end |
#stroke_opacity ⇒ Object
Returns the value of attribute stroke_opacity.
49 50 51 |
# File 'lib/svg.rb', line 49 def stroke_opacity @stroke_opacity end |
#stroke_width ⇒ Object
Returns the value of attribute stroke_width.
49 50 51 |
# File 'lib/svg.rb', line 49 def stroke_width @stroke_width end |
#style ⇒ Object
Returns the value of attribute style.
49 50 51 |
# File 'lib/svg.rb', line 49 def style @style end |
Instance Method Details
#attr_to_s(attr_name, attr_val) ⇒ Object
54 55 56 57 |
# File 'lib/svg.rb', line 54 def attr_to_s (attr_name, attr_val) return '' if attr_val.nil? " #{attr_name}=\"#{attr_val}\"" if not attr_val.to_s.empty? end |
#to_svg ⇒ Object
50 51 52 |
# File 'lib/svg.rb', line 50 def to_svg '<overrideme/>' end |