Sha256: 7dc2a29097a5c8875c6ad4b00ef5073cf2c6c2f3e39bda5862333a9ebe72801c

Contents?: true

Size: 238 Bytes

Versions: 22

Compression:

Stored size: 238 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

22 entries across 22 versions & 1 rubygems

Version Path
loris-0.5.2 lib/filters/ends_with_filter.rb
loris-0.5.1 lib/filters/ends_with_filter.rb
loris-0.5.0 lib/filters/ends_with_filter.rb
loris-0.4.1 lib/filters/ends_with_filter.rb
loris-0.4.0 lib/filters/ends_with_filter.rb
loris-0.3.2 lib/filters/ends_with_filter.rb
loris-0.3.1 lib/filters/ends_with_filter.rb
loris-0.3.0 lib/filters/ends_with_filter.rb
loris-0.2.3 lib/filters/ends_with_filter.rb
loris-0.2.2 lib/filters/ends_with_filter.rb
loris-0.2.1 lib/filters/ends_with_filter.rb
loris-0.2.0 lib/filters/ends_with_filter.rb
loris-0.1.7 lib/filters/ends_with_filter.rb
loris-0.1.5 lib/filters/ends_with_filter.rb
loris-0.1.4 lib/filters/ends_with_filter.rb
loris-0.1.3 lib/filters/ends_with_filter.rb
loris-0.1.2 lib/filters/ends_with_filter.rb
loris-0.1.1 lib/filters/ends_with_filter.rb
loris-0.1.0 lib/filters/ends_with_filter.rb
loris-0.0.16 lib/filters/ends_with_filter.rb