module Reading::BlankField
BlankField
is for the errors and warnings below, which indicate that a field is blank in data for a new Item.
Attributes
fields[R]
Public Class Methods
new(line_or_field = nil, label: nil)
click to toggle source
Calls superclass method
# File lib/reading/csv/errors.rb, line 78 def initialize(line_or_field = nil, label: nil) line, label = from(line_or_field, label) super(line, label: label) end
Private Instance Methods
from(line_or_field, label)
click to toggle source
# File lib/reading/csv/errors.rb, line 85 def from(line_or_field, label) if line_or_field.is_a?(Array) label = "Missing #{line_or_field.join(", ")}:" else line = line_or_field end [line, label] end