module Scalaroid
Constants
- DEFAULT_PATH
path to the json rpc page
- DEFAULT_URL
- VERSION
Public Class Methods
str_to_list(value)
click to toggle source
Converts a string to a list of integers. If the expected value of a read operation is a list, the returned value could be (mistakenly) a string if it is a list of integers.
# File lib/scalaroid.rb, line 98 def str_to_list(value) if value.is_a?(String) return value.unpack("U*") else return value end end
Private Instance Methods
str_to_list(value)
click to toggle source
Converts a string to a list of integers. If the expected value of a read operation is a list, the returned value could be (mistakenly) a string if it is a list of integers.
# File lib/scalaroid.rb, line 98 def str_to_list(value) if value.is_a?(String) return value.unpack("U*") else return value end end