Sha256: 2a52e5d4dec8ce0243893d8e7ce11cef24676a6dc502118031c5a51b400486f6

Contents?: true

Size: 593 Bytes

Versions: 14

Compression:

Stored size: 593 Bytes

Contents

require 'simctl/command'
require 'simctl/device'
require 'simctl/device_type'
require 'simctl/list'
require 'simctl/runtime'

module SimCtl
  class << self
    def command
      return @command if defined?(@command)
      @command = SimCtl::Command.new
    end

    private

    def respond_to_missing?(method_name, include_private=false)
      command.respond_to?(method_name, include_private)
    end

    def method_missing(method_name, *args, &block)
      if command.respond_to?(method_name)
        return command.send(method_name, *args, &block)
      end
      super
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
simctl-1.5.0 lib/simctl.rb
simctl-1.4.1 lib/simctl.rb
simctl-1.3.1 lib/simctl.rb
simctl-1.3.0 lib/simctl.rb
simctl-1.2.3 lib/simctl.rb
simctl-1.2.2 lib/simctl.rb
simctl-1.2.1 lib/simctl.rb
simctl-1.2.0 lib/simctl.rb
simctl-1.1.0 lib/simctl.rb
simctl-1.0.2 lib/simctl.rb
simctl-1.0.1 lib/simctl.rb
simctl-1.0.0 lib/simctl.rb
simctl-0.2.0 lib/simctl.rb
simctl-0.1.0 lib/simctl.rb