class Estratto::Helpers::Range
Public Class Methods
for(string)
click to toggle source
# File lib/estratto/helpers/range.rb, line 4 def self.for(string) ::Range.new(*string.split('..').map(&:to_i)) end
# File lib/estratto/helpers/range.rb, line 4 def self.for(string) ::Range.new(*string.split('..').map(&:to_i)) end