class Realize::File::Extname
Extract the file extension from the value. If the value has multiple extensions then only the last one will be returned.
Public Instance Methods
transform(_resolver, value, _time, _record)
click to toggle source
# File lib/realize/file/extname.rb, line 17 def transform(_resolver, value, _time, _record) ::File.extname(value.to_s) end