Sha256: 31338424c320c3d3f6a19347fb67b111f32c0b38889d6422573d18ce65b97a75
Contents?: true
Size: 695 Bytes
Versions: 118
Compression:
Stored size: 695 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 # 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 # Public getter for all UI related code # rubocop:disable Naming/MethodName def UI UserInterface.new(self) end # rubocop:enable Naming/MethodName end end
Version data entries
118 entries across 118 versions & 4 rubygems