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.5.5 lib/picky/generators/partial/postfix.rb
picky-4.5.4 lib/picky/generators/partial/postfix.rb
picky-4.5.3 lib/picky/generators/partial/postfix.rb
picky-4.5.2 lib/picky/generators/partial/postfix.rb
picky-4.5.1 lib/picky/generators/partial/postfix.rb
picky-4.5.0 lib/picky/generators/partial/postfix.rb
picky-4.4.2 lib/picky/generators/partial/postfix.rb
picky-4.4.1 lib/picky/generators/partial/postfix.rb
picky-4.4.0 lib/picky/generators/partial/postfix.rb
picky-4.3.2 lib/picky/generators/partial/postfix.rb
picky-4.3.1 lib/picky/generators/partial/postfix.rb
picky-4.3.0 lib/picky/generators/partial/postfix.rb
picky-4.2.4 lib/picky/generators/partial/postfix.rb
picky-4.2.3 lib/picky/generators/partial/postfix.rb
picky-4.2.2 lib/picky/generators/partial/postfix.rb
picky-4.2.1 lib/picky/generators/partial/postfix.rb
picky-4.2.0 lib/picky/generators/partial/postfix.rb
picky-4.1.0 lib/picky/generators/partial/postfix.rb
picky-4.0.9 lib/picky/generators/partial/postfix.rb
picky-4.0.8 lib/picky/generators/partial/postfix.rb