class Formulario::Field::String
Public Class Methods
new(raw_value)
click to toggle source
Calls superclass method
Formulario::Field::new
# File lib/formulario/fields/string.rb, line 12 def initialize(raw_value) super end
Private Class Methods
build(raw_value)
click to toggle source
# File lib/formulario/fields/string.rb, line 6 def self.build(raw_value) new String(raw_value) rescue TypeError => e ExceptionalValue.new(raw_value, reasons: ['needs to represent a string']) end