Class: Condenser::SVGTransformer::Value
- Inherits:
-
Object
- Object
- Condenser::SVGTransformer::Value
- Defined in:
- lib/condenser/transformers/svg_transformer/value.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
- #to_js ⇒ Object
Constructor Details
#initialize(value) ⇒ Value
Returns a new instance of Value.
5 6 7 |
# File 'lib/condenser/transformers/svg_transformer/value.rb', line 5 def initialize(value) @value = value end |
Instance Method Details
#to_js ⇒ Object
9 10 11 |
# File 'lib/condenser/transformers/svg_transformer/value.rb', line 9 def to_js JSON.generate(@value) end |