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-1.6.7 spec/support/models/dummy_options_parser.rb
sinclair-1.6.6 spec/support/models/dummy_options_parser.rb
sinclair-1.6.5 spec/support/models/dummy_options_parser.rb
sinclair-1.6.4 spec/support/models/dummy_options_parser.rb
sinclair-1.6.3 spec/support/models/dummy_options_parser.rb
sinclair-1.6.2 spec/support/models/dummy_options_parser.rb
sinclair-1.6.1 spec/support/models/dummy_options_parser.rb
sinclair-1.6.0 spec/support/models/dummy_options_parser.rb
sinclair-1.5.2 spec/support/models/dummy_options_parser.rb
sinclair-1.5.1 spec/support/models/dummy_options_parser.rb
sinclair-1.5.0 spec/support/models/dummy_options_parser.rb
sinclair-1.4.2 spec/support/models/dummy_options_parser.rb
sinclair-1.4.1 spec/support/models/dummy_options_parser.rb
sinclair-1.4.0 spec/support/models/dummy_options_parser.rb
sinclair-1.3.4 spec/support/models/dummy_options_parser.rb
sinclair-1.3.3 spec/support/models/dummy_options_parser.rb
sinclair-1.3.2 spec/support/models/dummy_options_parser.rb
sinclair-1.3.1 spec/support/models/dummy_options_parser.rb
sinclair-1.3.0 spec/support/models/dummy_options_parser.rb
sinclair-1.2.1 spec/support/models/dummy_options_parser.rb