Class: InlineSvg::TransformPipeline::Transformations::Transformation
- Inherits:
-
Object
- Object
- InlineSvg::TransformPipeline::Transformations::Transformation
- Defined in:
- lib/inline_svg/transform_pipeline/transformations/transformation.rb
Direct Known Subclasses
CustomTransformation, AriaAttributes, ClassAttribute, DataAttributes, Description, Height, IdAttribute, NoComment, NullTransformation, PreserveAspectRatio, Size, Title, Width
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ Transformation
constructor
A new instance of Transformation.
- #transform ⇒ Object
Constructor Details
#initialize(value) ⇒ Transformation
Returns a new instance of Transformation.
9 10 11 |
# File 'lib/inline_svg/transform_pipeline/transformations/transformation.rb', line 9 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/inline_svg/transform_pipeline/transformations/transformation.rb', line 7 def value @value end |
Class Method Details
.create_with_value(value) ⇒ Object
3 4 5 |
# File 'lib/inline_svg/transform_pipeline/transformations/transformation.rb', line 3 def self.create_with_value(value) self.new(value) end |
Instance Method Details
#transform ⇒ Object
13 14 15 |
# File 'lib/inline_svg/transform_pipeline/transformations/transformation.rb', line 13 def transform(*) raise "#transform should be implemented by subclasses of Transformation" end |