Class: DragonflySvg::Analysers::SvgProperties
- Inherits:
-
Object
- Object
- DragonflySvg::Analysers::SvgProperties
- Defined in:
- lib/dragonfly_svg/analysers/svg_properties.rb
Instance Method Summary collapse
Instance Method Details
#call(content) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/dragonfly_svg/analysers/svg_properties.rb', line 7 def call content node = svg_node(content) { width: node.get_attribute('width').to_f, height: node.get_attribute('height').to_f, id: node.get_attribute('id'), } end |