Class: Vectory::SvgMapping
- Inherits:
-
Object
- Object
- Vectory::SvgMapping
- Defined in:
- lib/vectory/svg_mapping.rb
Defined Under Namespace
Classes: Namespace
Constant Summary collapse
- SVG_NS =
"http://www.w3.org/2000/svg".freeze
- PROCESSING_XPATH =
"processing-instruction()|.//processing-instruction()".freeze
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(xml, local_directory = "") ⇒ SvgMapping
constructor
A new instance of SvgMapping.
Constructor Details
#initialize(xml, local_directory = "") ⇒ SvgMapping
Returns a new instance of SvgMapping.
28 29 30 31 |
# File 'lib/vectory/svg_mapping.rb', line 28 def initialize(xml, local_directory = "") @xml = xml @local_directory = local_directory end |
Class Method Details
.from_path(path) ⇒ Object
24 25 26 |
# File 'lib/vectory/svg_mapping.rb', line 24 def self.from_path(path) new(File.read(path)) end |