class ShriftCell

A basic Shrift Cell mapping to a String.

Attributes

field[R]

Public Class Methods

new(field) click to toggle source
# File lib/shrift/shrift_cell.rb, line 5
def initialize(field)
  @field = field
end

Public Instance Methods

process(target) click to toggle source
# File lib/shrift/shrift_cell.rb, line 9
def process(target)
  target.send(field)
end
set(value, target) click to toggle source
# File lib/shrift/shrift_cell.rb, line 13
def set(value, target)
  target.send("#{@field}=", value)
end