Sha256: 3065eabc2968afccb2edd3af4f3cfa2575cbaae6400c73cca3a0b557b7870877

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

require 'rubygems'
require 'extensions/string'

class EndsWithFilter
  
  def initialize(text)
    @text = text.downcase
  end
  
  def filter(file_name)
    return file_name.downcase.ends_with? @text
  end
  
  def complete
  end
  
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
karl-loris-0.0.10 lib/filters/ends_with_filter.rb
karl-loris-0.0.11 lib/filters/ends_with_filter.rb
loris-0.0.12 lib/filters/ends_with_filter.rb