Sha256: 9b991f89b53f513f5d3e387f6072ad40554051e52f5d9a5e6c6f6fb90969329e
Contents?: true
Size: 632 Bytes
Versions: 1
Compression:
Stored size: 632 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 def UI UserInterface.new(self) end # All User Interface related code lives in this class class UserInterface # Is called by the client to generate one instance of UserInterface def initialize(c) @client = c end # Access the client this UserInterface object is for def client @client end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spaceship-0.4.0 | lib/spaceship/ui.rb |