Sha256: 0ab0f6a1249c91ba912141dfb62575bdc74427ba2bb4609d19e39dc09f520728

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

# frozen_string_literal: true

# reference: https://github.com/rails/rails/blob/master/activesupport/lib/active_support/inflector/methods.rb

module Cmdlet
  # {{cmdlet.category_description}}
  module {{camel cmdlet.category}}
    # {{camel cmdlet.name}}: {{cmdlet.command_description}}
    class {{camel cmdlet.name}} < Funcky::BaseFunction
      {{#each cmdlet.usecases}}
      # @example
      #
      #   puts {{camel ./function}}.new.parse({{{nice_inputs}}})
      #
      #   {{expected_output}}
      #
      {{/each}}
      #
      # @param [String|Int] value - numeric value
      # @return [String] ordinal suffix that would be required for a number
      def parse(value)
{{{cmdlet.ruby}}}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cmdlet-0.0.7 .builders/.templates/command.rb