Method: Coco::Svg#initialize
- Defined in:
- app/components/coco/images/svg/svg.rb
#initialize(path: nil, **kwargs) ⇒ Svg
Returns a new instance of Svg.
9 10 11 |
# File 'app/components/coco/images/svg/svg.rb', line 9 def initialize(path: nil, **kwargs) @path = path.gsub(".svg", "") end |