Class: String

Inherits:
Object show all
Defined in:
lib/core.rb

Instance Method Summary collapse

Instance Method Details

#to_bObject



179
180
181
182
183
184
185
# File 'lib/core.rb', line 179

def to_b
  if self == "true"
    return true
  else
    return false
  end
end

#to_posObject



186
187
188
189
190
191
# 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