Class: Wield

Inherits:
Object
  • Object
show all
Defined in:
models.rb

Class Method Summary (collapse)

Class Method Details

+ (String) left

Wield left

Examples:

Using wield left in script.

echo Wield::left
=> ""

Returns:

  • (String)


99
100
101
102
# File 'models.rb', line 99

def self.left()
  $_api_socket.puts "GET WIELD_LEFT\n"
  $_api_socket.gets('\0').chomp('\0').to_s
end

+ (String) left_noun

Wield left noun

Examples:

Using wield left noun in script.

echo Wield::left_noun
=> ""

Returns:

  • (String)


110
111
112
113
# File 'models.rb', line 110

def self.left_noun()
  $_api_socket.puts "GET WIELD_LEFT_NOUN\n"
  $_api_socket.gets('\0').chomp('\0').to_s
end

+ (String) right

Wield right

Examples:

Using wield right in script.

echo Wield::right
=> fuzzy sharks

Returns:

  • (String)


78
79
80
81
# File 'models.rb', line 78

def self.right()
  $_api_socket.puts "GET WIELD_RIGHT\n"
  $_api_socket.gets('\0').chomp('\0').to_s
end

+ (String) right_noun

Wield right noun

Examples:

Using wield right noun in script.

put "put my #{Wield::right_noun} in my backpack"

Returns:

  • (String)


88
89
90
91
# File 'models.rb', line 88

def self.right_noun()
  $_api_socket.puts "GET WIELD_RIGHT_NOUN\n"
  $_api_socket.gets('\0').chomp('\0').to_s
end