Class: Victor::SVG

Inherits:
SVGBase show all
Defined in:
lib/victor/svg.rb

Instance Attribute Summary

Attributes inherited from SVGBase

#content, #css, #glue, #svg_attributes, #template

Instance Method Summary collapse

Methods inherited from SVGBase

#<<, #build, #initialize, #marshaling, #render, #save, #setup, #tag, #to_s

Methods included from Marshaling

#encode_with, #init_with, #marshal_dump, #marshal_load, #marshaling

Constructor Details

This class inherits a constructor from Victor::SVGBase

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_sym) ⇒ Object



3
4
5
# File 'lib/victor/svg.rb', line 3

def method_missing(method_sym, ...)
  tag(method_sym, ...)
end

Instance Method Details

#respond_to_missing?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/victor/svg.rb', line 7

def respond_to_missing?(*)
  true
end