Method: Esvg#new
- Defined in:
- lib/esvg.rb
#new(options = {}) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/esvg.rb', line 55 def new(={}) @svgs ||=[] c = config() # If the source path is the same continue # Otherwise add a new SVG group for this path unless @svgs.find { |s| s.config[:source] == c[:source] } @svgs << Svgs.new(c) end @svgs.last end |