Sha256: cab60d8bee805b992fcbeb52543fe0fa8a05a2879dae7b725c003872281f24be

Contents?: true

Size: 498 Bytes

Versions: 141

Compression:

Stored size: 498 Bytes

Contents

module Picky

  module Generators

    module Partial

      class Postfix < Substring

        # The from option signifies where in the symbol it
        # will start in generating the subtokens.
        #
        # Examples:
        #
        # With :hello
        # * from: 1 # => [:hello, :hell, :hel, :he, :h]
        # * from: 4 # => [:hello, :hell]
        #
        def initialize options = {}
          options[:to] = -1

          super options
        end

      end

    end

  end

end

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
picky-4.31.3 lib/picky/generators/partial/postfix.rb
picky-4.31.2 lib/picky/generators/partial/postfix.rb
picky-4.31.1 lib/picky/generators/partial/postfix.rb
picky-4.31.0 lib/picky/generators/partial/postfix.rb
picky-4.30.0 lib/picky/generators/partial/postfix.rb
picky-4.29.0 lib/picky/generators/partial/postfix.rb
picky-4.28.1 lib/picky/generators/partial/postfix.rb
picky-4.27.1 lib/picky/generators/partial/postfix.rb
picky-4.27.0 lib/picky/generators/partial/postfix.rb
picky-4.26.2 lib/picky/generators/partial/postfix.rb
picky-4.26.1 lib/picky/generators/partial/postfix.rb
picky-4.26.0 lib/picky/generators/partial/postfix.rb
picky-4.25.3 lib/picky/generators/partial/postfix.rb
picky-4.25.2 lib/picky/generators/partial/postfix.rb
picky-4.25.1 lib/picky/generators/partial/postfix.rb
picky-4.25.0 lib/picky/generators/partial/postfix.rb
picky-4.24.0 lib/picky/generators/partial/postfix.rb
picky-4.23.2 lib/picky/generators/partial/postfix.rb
picky-4.23.1 lib/picky/generators/partial/postfix.rb
picky-4.23.0 lib/picky/generators/partial/postfix.rb