class String

Public Instance Methods

to_b() click to toggle source
# File lib/core.rb, line 179
def to_b
  if self == "true"
    return true
  else
    return false
  end
end
to_pos() click to toggle source
# File lib/core.rb, line 186
def to_pos
  ary = []
  ary.push(self.gsub(/\|\d+/, "").to_i)
  ary.push(self.gsub(/\d+\|/, "").to_i)
  return ary
end