Class: String
Instance Method Summary collapse
Instance Method Details
#to_b ⇒ Object
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_pos ⇒ Object
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 |