class ActiveModel::Coercions::Types::Time
Public Class Methods
new(value)
click to toggle source
# File lib/active_model/coercions/types/time.rb, line 5 def initialize(value) @value = value end
Public Instance Methods
to_value()
click to toggle source
# File lib/active_model/coercions/types/time.rb, line 9 def to_value @value.to_time end