Sha256: fbf618c6fc3ae2be956b20cd5d7bb58b70c5bdd14647e7d55925affcc0763acb

Contents?: true

Size: 429 Bytes

Versions: 15

Compression:

Stored size: 429 Bytes

Contents

#!/usr/bin/env ruby
$: << File.expand_path('lib')

<%= run sq(<<-'rb')
    require 'cl'

    class Cmd < Cl::Cmd
      arg :one, type: :integer
      arg :two, type: :float
      arg :three, type: :boolean

      def run
        p [one.class, two.class, three.class]
      end
    end
  rb
-%>

<%= run "Cl.new('owners').run(%w(cmd 1 2.1 yes))" %>

<%= out "[#{RUBY_VERSION < '2.4' ? 'Fixnum' : 'Integer'}, Float, TrueClass]" %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cl-1.2.2 examples/_src/readme/arg_type.erb.rb
cl-1.2.1 examples/_src/readme/arg_type.erb.rb
cl-1.2.0 examples/_src/readme/arg_type.erb.rb
cl-1.1.5 examples/_src/readme/arg_type.erb.rb
cl-1.1.4 examples/_src/readme/arg_type.erb.rb
cl-1.1.3 examples/_src/readme/arg_type.erb.rb
cl-1.1.2 examples/_src/readme/arg_type.erb.rb
cl-1.1.1 examples/_src/readme/arg_type.erb.rb
cl-1.1.0 examples/_src/readme/arg_type.erb.rb
cl-1.0.5 examples/_src/readme/arg_type.erb.rb
cl-1.0.4 examples/_src/readme/arg_type.erb.rb
cl-1.0.3 examples/_src/readme/arg_type.erb.rb
cl-1.0.2 examples/_src/readme/arg_type.erb.rb
cl-1.0.1 examples/_src/readme/arg_type.erb.rb
cl-1.0.0 examples/src/readme/arg_type.erb.rb