class Poleica::Converters::General
The General
converter, it handles any file type and return null for unknown conversion
Constants
- COMPATIBLE_TYPES
Attributes
polei[R]
Public Class Methods
new(polei)
click to toggle source
# File lib/poleica/converters/general.rb, line 12 def initialize(polei) @polei = polei end
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/poleica/converters/general.rb, line 20 def method_missing(method, *args, &block) super unless method =~ /^to_/ end
to_bin(_options = {})
click to toggle source
# File lib/poleica/converters/general.rb, line 16 def to_bin(_options = {}) File.binread(polei.path) end