Module: MaxCube
- Defined in:
- lib/maxcube.rb,
lib/maxcube/runner.rb,
lib/maxcube/network.rb,
lib/maxcube/version.rb,
lib/maxcube/messages.rb,
lib/maxcube/network/tcp.rb,
lib/maxcube/network/udp.rb,
lib/maxcube/messages/tcp.rb,
lib/maxcube/messages/udp.rb,
lib/maxcube/messages/parser.rb,
lib/maxcube/messages/handler.rb,
lib/maxcube/network/tcp/client.rb,
lib/maxcube/network/udp/client.rb,
lib/maxcube/messages/serializer.rb,
lib/maxcube/messages/tcp/parser.rb,
lib/maxcube/messages/tcp/type/a.rb,
lib/maxcube/messages/tcp/type/c.rb,
lib/maxcube/messages/tcp/type/f.rb,
lib/maxcube/messages/tcp/type/h.rb,
lib/maxcube/messages/tcp/type/l.rb,
lib/maxcube/messages/tcp/type/m.rb,
lib/maxcube/messages/tcp/type/n.rb,
lib/maxcube/messages/tcp/type/q.rb,
lib/maxcube/messages/tcp/type/s.rb,
lib/maxcube/messages/tcp/type/t.rb,
lib/maxcube/messages/tcp/type/u.rb,
lib/maxcube/messages/tcp/type/z.rb,
lib/maxcube/messages/udp/parser.rb,
lib/maxcube/messages/udp/type/h.rb,
lib/maxcube/messages/udp/type/i.rb,
lib/maxcube/messages/udp/type/n.rb,
lib/maxcube/messages/tcp/handler.rb,
lib/maxcube/messages/udp/handler.rb,
lib/maxcube/messages/tcp/serializer.rb,
lib/maxcube/messages/udp/serializer.rb,
lib/maxcube/network/tcp/sample_server.rb,
lib/maxcube/network/udp/sample_socket.rb,
lib/maxcube/network/tcp/client/commands.rb
Overview
Root project module that contains only project-related utilities
Defined Under Namespace
Modules: Messages, Network Classes: Runner
Constant Summary collapse
- VERSION =
Project (package) version
'0.5.1'.freeze
Class Method Summary collapse
-
.bin_dir ⇒ String
Gets path to
bin/
project directory with executables. -
.data_dir ⇒ String
Gets path to
data/
project directory with input/output data for clients and servers. -
.lib_dir ⇒ String
Gets path to
lib/
project directory with Ruby source files. -
.root_dir ⇒ String
Gets path to project root directory.
Class Method Details
.bin_dir ⇒ String
Gets path to bin/
project directory with executables
20 21 22 |
# File 'lib/maxcube.rb', line 20 def self.bin_dir File.join(root_dir, 'bin') end |
.data_dir ⇒ String
Gets path to data/
project directory with input/output data for clients and servers
33 34 35 |
# File 'lib/maxcube.rb', line 33 def self.data_dir File.join(root_dir, 'data') end |
.lib_dir ⇒ String
Gets path to lib/
project directory with Ruby source files
26 27 28 |
# File 'lib/maxcube.rb', line 26 def self.lib_dir File.join(root_dir, 'lib') end |
.root_dir ⇒ String
Gets path to project root directory
14 15 16 |
# File 'lib/maxcube.rb', line 14 def self.root_dir File.dirname __dir__ end |