class ImageParadise::Svg::Feature

Attributes

fill[RW]
fill_opacity[RW]
stroke[RW]
stroke_opacity[RW]
stroke_width[RW]
style[RW]

Public Instance Methods

attr_to_s( attr_name, attr_val ) click to toggle source
#

attr_to_s

#
# File lib/image_paradise/svg/feature.rb, line 30
def attr_to_s(
    attr_name, attr_val
  )
  return '' if attr_val.nil? 
  " #{attr_name}=\"#{attr_val}\"" unless attr_val.to_s.empty?
end
point_to_s( x_attr_name, y_attr_name, point ) click to toggle source
#

point_to_s

#
# File lib/image_paradise/svg/feature.rb, line 40
def point_to_s(
    x_attr_name, y_attr_name, point
  )
  return '' if point.nil? 
  return_val = " #{x_attr_name}=\"#{point.x}\"" unless point.x.to_s.empty?
  return_val + " #{y_attr_name}=\"#{point.y}\"" unless point.y.to_s.empty?
end
to_svg() click to toggle source
#

to_svg

#
# File lib/image_paradise/svg/feature.rb, line 23
def to_svg
  '<overrideme/>'
end