Class: Realize::File::Extname
- Inherits:
-
Object
- Object
- Realize::File::Extname
- Defined in:
- lib/realize/file/extname.rb
Overview
Extract the file extension from the value. If the value has multiple extensions then only the last one will be returned.
Instance Method Summary collapse
Instance Method Details
#transform(_resolver, value, _time, _record) ⇒ Object
17 18 19 |
# File 'lib/realize/file/extname.rb', line 17 def transform(_resolver, value, _time, _record) ::File.extname(value.to_s) end |