Class: Wings::NilAttributeValue

Inherits:
Valkyrie::ValueMapper
  • Object
show all
Defined in:
lib/wings/converter_value_mapper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.handles?(value) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/wings/converter_value_mapper.rb', line 45

def self.handles?(value)
  value.last.nil?
end

Instance Method Details

#resultObject



49
50
51
# File 'lib/wings/converter_value_mapper.rb', line 49

def result
  value
end