Method: Xploit::Libc#string

Defined in:
lib/xploit/libc.rb

#string(key) ⇒ Object



40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/xploit/libc.rb', line 40

def string(key)
  
  if key.class != String
    raise ArgumentError
  end
  
  if @string.keys.include?(key)
    @string[key]
  else
    raise ArgumentError, "Not found string: #{key}"
  end
  
end