class Parxer::Validator::FileFormat
Public Instance Methods
validate()
click to toggle source
# File lib/parxer/validators/file_format_validator.rb, line 4 def validate return false unless allowed_extensions.include?(context.file_extension) !!context.raw_rows rescue false end
Private Instance Methods
allowed_extensions()
click to toggle source
# File lib/parxer/validators/file_format_validator.rb, line 13 def allowed_extensions config[:allowed_extensions].map(&:to_sym) end