Sha256: 13561fe1fd50193a29bd65230d99991e69a60784c6de2b49fe7d3b6b3578846a

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

module GitCompound
  module Command
    module Arguments
      module Type
        module Argument
          # String argument implementation
          #
          class String < Argument
            def valid?
              value!.is_a?(::String)
            end

            private

            def value!
              @args.find { |arg| arg.is_a?(::String) }
            end

            def value
              value!.to_s
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
git_compound-0.2.2 lib/git_compound/command/arguments/type/argument/string.rb
git_compound-0.2.1 lib/git_compound/command/arguments/type/argument/string.rb
git_compound-0.2.0 lib/git_compound/command/arguments/type/argument/string.rb