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

Class Method Details

.bin_dirString

Gets path to bin/ project directory with executables

Returns:

  • (String)

    path to bin/ project directory



20
21
22
# File 'lib/maxcube.rb', line 20

def self.bin_dir
  File.join(root_dir, 'bin')
end

.data_dirString

Gets path to data/ project directory with input/output data for clients and servers

Returns:

  • (String)

    path to data/ project directory



33
34
35
# File 'lib/maxcube.rb', line 33

def self.data_dir
  File.join(root_dir, 'data')
end

.lib_dirString

Gets path to lib/ project directory with Ruby source files

Returns:

  • (String)

    path to lib/ project directory



26
27
28
# File 'lib/maxcube.rb', line 26

def self.lib_dir
  File.join(root_dir, 'lib')
end

.root_dirString

Gets path to project root directory

Returns:

  • (String)

    path to project root directory



14
15
16
# File 'lib/maxcube.rb', line 14

def self.root_dir
  File.dirname __dir__
end