Class: Blobsterix::Transformations::Transformation
- Inherits:
-
Object
- Object
- Blobsterix::Transformations::Transformation
show all
- Includes:
- Logable
- Defined in:
- lib/blobsterix/transformation/transformation.rb
Direct Known Subclasses
Impl::AdaptiveResizeImage, Impl::AsciiHTMLTransformation, Impl::AsciiTransformation, Impl::ColorSpaceImage, Impl::CropImage, Impl::GifTransformation, Impl::Image2HTML, Impl::Image2Json, Impl::JPegTransformation, Impl::MaxsizeImage, Impl::PngTransformation, Impl::RawTransformation, Impl::RenderTextTransformation, Impl::ResizeImage, Impl::RotateImage, Impl::ShrinkImage, Impl::SleepTransformation, Impl::StripImage, Impl::WebPTransformation
Instance Method Summary
collapse
Methods included from Logable
#logger, #logger=
Instance Method Details
17
18
19
|
# File 'lib/blobsterix/transformation/transformation.rb', line 17
def input_type
Blobsterix::AcceptType.new
end
|
13
14
15
|
# File 'lib/blobsterix/transformation/transformation.rb', line 13
def is_format?
false
end
|
#name ⇒ Object
5
6
7
|
# File 'lib/blobsterix/transformation/transformation.rb', line 5
def name
""
end
|
#output_type ⇒ Object
21
22
23
|
# File 'lib/blobsterix/transformation/transformation.rb', line 21
def output_type
Blobsterix::AcceptType.new
end
|
#to_s ⇒ Object
9
10
11
|
# File 'lib/blobsterix/transformation/transformation.rb', line 9
def to_s
name
end
|
25
26
27
28
|
# File 'lib/blobsterix/transformation/transformation.rb', line 25
def transform(input_path, target_path, value)
logger.debug "run transformation!!!!!"
system("cp #{input_path} #{target_path}")
end
|