Sha256: ef88d2b258fb5667d672470d8b5f096bd637771e0e58e2735864e90a3a252a9f

Contents?: true

Size: 116 Bytes

Versions: 3

Compression:

Stored size: 116 Bytes

Contents

module Lunar
  class FuzzyWord < String
    def partials
      (1..length).map { |i| self[0, i] }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lunar-0.4.1 lib/lunar/fuzzy_word.rb
lunar-0.4.0 lib/lunar/fuzzy_word.rb
lunar-0.3.0 lib/lunar/fuzzy_word.rb