Sha256: 8e3e236bde7abcb625f5146dad58c5c02e790c7916162076ce1f50b5ba9c8469

Contents?: true

Size: 692 Bytes

Versions: 550

Compression:

Stored size: 692 Bytes

Contents

paths = Dir[File.expand_path "**/ui/*.rb", File.dirname(__FILE__)]
raise "Could not find UI classes to import" unless paths.count > 0
paths.each do |file|
  require file
end

module Spaceship
  class Client
    # Public getter for all UI related code
    # rubocop:disable Style/MethodName
    def UI
      UserInterface.new(self)
    end
    # rubocop:enable Style/MethodName

    # All User Interface related code lives in this class
    class UserInterface
      # Access the client this UserInterface object is for
      attr_reader :client

      # Is called by the client to generate one instance of UserInterface
      def initialize(c)
        @client = c
      end
    end
  end
end

Version data entries

550 entries across 550 versions & 2 rubygems

Version Path
spaceship-0.26.0 lib/spaceship/ui.rb
spaceship-0.25.1 lib/spaceship/ui.rb
spaceship-0.25.0 lib/spaceship/ui.rb
spaceship-0.24.1 lib/spaceship/ui.rb
spaceship-0.24.0 lib/spaceship/ui.rb
spaceship-0.23.0 lib/spaceship/ui.rb
spaceship-0.22.0 lib/spaceship/ui.rb
spaceship-0.21.1 lib/spaceship/ui.rb
spaceship-0.21.0 lib/spaceship/ui.rb
spaceship-0.20.0 lib/spaceship/ui.rb
spaceship-0.19.4 lib/spaceship/ui.rb
spaceship-0.19.3 lib/spaceship/ui.rb
spaceship-0.19.2 lib/spaceship/ui.rb
spaceship-0.19.1 lib/spaceship/ui.rb
spaceship-0.19.0 lib/spaceship/ui.rb
spaceship-0.18.1 lib/spaceship/ui.rb
spaceship-0.18.0 lib/spaceship/ui.rb
spaceship-0.17.0 lib/spaceship/ui.rb
spaceship-0.16.0 lib/spaceship/ui.rb
spaceship-0.15.2 lib/spaceship/ui.rb