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.0.15 lib/filters/ends_with_filter.rb
loris-0.0.14 lib/filters/ends_with_filter.rb