Class: Condenser::SVGTransformer::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/condenser/transformers/svg_transformer/value.rb

Instance Method Summary collapse

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_jsObject



9
10
11
# File 'lib/condenser/transformers/svg_transformer/value.rb', line 9

def to_js
  JSON.generate(@value)
end