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-3.6.8 lib/picky/generators/partial/postfix.rb
picky-3.6.7 lib/picky/generators/partial/postfix.rb
picky-3.6.6 lib/picky/generators/partial/postfix.rb
picky-3.6.4 lib/picky/generators/partial/postfix.rb
picky-3.6.3 lib/picky/generators/partial/postfix.rb
picky-3.6.2 lib/picky/generators/partial/postfix.rb
picky-3.6.1 lib/picky/generators/partial/postfix.rb
picky-3.6.0 lib/picky/generators/partial/postfix.rb
picky-3.5.4 lib/picky/generators/partial/postfix.rb
picky-3.5.3 lib/picky/generators/partial/postfix.rb
picky-3.5.2 lib/picky/generators/partial/postfix.rb
picky-3.5.1 lib/picky/generators/partial/postfix.rb
picky-3.5.0 lib/picky/generators/partial/postfix.rb
picky-3.4.3 lib/picky/generators/partial/postfix.rb
picky-3.4.2 lib/picky/generators/partial/postfix.rb
picky-3.4.1 lib/picky/generators/partial/postfix.rb
picky-3.4.0 lib/picky/generators/partial/postfix.rb
picky-3.3.3 lib/picky/generators/partial/postfix.rb
picky-3.3.2 lib/picky/generators/partial/postfix.rb
picky-3.3.1 lib/picky/generators/partial/postfix.rb