Sha256: 85347d9041192f5d697a30cc9199475cba8ee020119670d635381e9efa5fd2d9

Contents?: true

Size: 500 Bytes

Versions: 43

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

class Sinclair
  module OptionsParser
    class Dummy
      include OptionsParser

      def initialize(options)
        @options = options.deep_dup
      end

      def the_method
        return 'missing option' if options_object.switch.nil?

        if options_object.switch
          "The value is #{options_object.option_1}"
        else
          "The value is not #{options_object.option_1} but #{options_object.option_2}"
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/support/models/dummy_options_parser.rb
sinclair-2.1.0 spec/support/models/dummy_options_parser.rb
sinclair-2.0.1 spec/support/models/dummy_options_parser.rb
sinclair-2.0.0 spec/support/models/dummy_options_parser.rb
sinclair-1.16.3 spec/support/models/dummy_options_parser.rb
sinclair-1.16.2 spec/support/models/dummy_options_parser.rb
sinclair-1.16.1 spec/support/models/dummy_options_parser.rb
sinclair-1.16.0 spec/support/models/dummy_options_parser.rb
sinclair-1.15.0 spec/support/models/dummy_options_parser.rb
sinclair-1.14.2 spec/support/models/dummy_options_parser.rb
sinclair-1.14.1 spec/support/models/dummy_options_parser.rb
sinclair-1.14.0 spec/support/models/dummy_options_parser.rb
sinclair-1.13.0 spec/support/models/dummy_options_parser.rb
sinclair-1.12.1 spec/support/models/dummy_options_parser.rb
sinclair-1.12.0 spec/support/models/dummy_options_parser.rb
sinclair-1.11.0 spec/support/models/dummy_options_parser.rb
sinclair-1.10.0 spec/support/models/dummy_options_parser.rb
sinclair-1.9.0 spec/support/models/dummy_options_parser.rb
sinclair-1.8.0 spec/support/models/dummy_options_parser.rb
sinclair-1.7.0 spec/support/models/dummy_options_parser.rb