Class: Victor::CLI::Parser
- Inherits:
-
Object
- Object
- Victor::CLI::Parser
- Defined in:
- lib/victor/cli/parser.rb
Instance Attribute Summary collapse
-
#raw_svg ⇒ Object
readonly
Returns the value of attribute raw_svg.
Instance Method Summary collapse
-
#initialize(raw_svg) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(raw_svg) ⇒ Parser
Returns a new instance of Parser.
8 9 10 |
# File 'lib/victor/cli/parser.rb', line 8 def initialize(raw_svg) @raw_svg = raw_svg end |
Instance Attribute Details
#raw_svg ⇒ Object (readonly)
Returns the value of attribute raw_svg.
6 7 8 |
# File 'lib/victor/cli/parser.rb', line 6 def raw_svg @raw_svg end |
Instance Method Details
#parse ⇒ Object
12 13 14 |
# File 'lib/victor/cli/parser.rb', line 12 def parse parse_node svg_root end |