class CharsAt::Model

Public Class Methods

new(content, indices) click to toggle source
# File lib/charsat/model.rb, line 5
def initialize(content, indices)
  @content = content
  @indices = indices
end

Public Instance Methods

parsed() click to toggle source
# File lib/charsat/model.rb, line 10
def parsed
  @indices.map { |i| @content[i.to_i - 1] }
end