Sha256: a900faf7a247aa76e235bc7673e0ad74355cc18da8696cdc0da1247f4b584b16

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

require 'spec-i18n/command_line/options'
require 'spec-i18n/platform'

module SpecI18n
  module CommandLine
    class Main
      def self.execute(args)
        new(args).execute!
      end
      
      def initialize(args, out_stream = STDOUT, error_stream = STDERR)
        @args = args
        @out_stream = out_stream
        @error_stream = error_stream
      end
      
      def execute!
        options = Options.new(@out_stream, @error_stream, @args)
        options.parse!(@args) 
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-i18n-1.2.1 lib/spec-i18n/command_line/main.rb
rspec-i18n-1.2.0 lib/spec-i18n/command_line/main.rb