module Steamd

Provide Ruby access to the Steam Language

frozen_string_literal: true

Constants

MAJOR

Major version of Steamd

MINOR

Minor version of Steamd

PATCH

Patch version of Steamd

VERSION

Full version of Steamd

Public Class Methods

grammar_dir() click to toggle source

Provides the absolute directory to the grammar directory. The grammar directory holds the Treetop grammars.

@return [String] the absolute path to the grammar directory

# File lib/steamd.rb, line 22
def self.grammar_dir
  "#{root}/grammar"
end
language_dir() click to toggle source

Provides the absolute directory to the language directory. The language directory holds the Steam Language.

@return [String] the absolute path to the language directory

# File lib/steamd.rb, line 30
def self.language_dir
  "#{root}/language"
end
load_language() click to toggle source

Loads the full Steam Language

# File lib/steamd.rb, line 10
def self.load_language
  require 'steamd/generated/emsg'
  require 'steamd/generated/eresult'
  require 'steamd/generated/gamecoordinator'
  require 'steamd/generated/header'
  require 'steamd/generated/steammsg'
end
root() click to toggle source

Provides the absolute directory to the root directory

@return [String] the absolute path to the root directory

# File lib/steamd.rb, line 37
def self.root
  File.expand_path(File.join(__dir__, '..'))
end