Sha256: c3c7b8d820c25e2ad2d5d105152679eea95e3d2343da0e72ea770588244c9aab
Contents?: true
Size: 694 Bytes
Versions: 4
Compression:
Stored size: 694 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
4 entries across 4 versions & 1 rubygems