class TalentScout::VoidType

@!visibility private

Attributes

underlying_type[R]

Public Class Methods

new() click to toggle source
# File lib/talent_scout/void_type.rb, line 7
def initialize
  @underlying_type = ActiveModel::Type.lookup(:boolean)
end

Public Instance Methods

cast(value) click to toggle source
Calls superclass method
# File lib/talent_scout/void_type.rb, line 11
def cast(value)
  super(underlying_type.cast(value) || nil)
end