Sha256: 4fbc65781d022b35ef3b1317723d99d0a53da9527645913ec7a47d25f63a95e2

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

class Sinclair
  class OptionsParser::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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sinclair-1.1.1 spec/support/models/dummy_options_parser.rb
sinclair-1.1.0 spec/support/models/dummy_options_parser.rb
sinclair-1.0.0 spec/support/models/dummy_options_parser.rb