method

to_obj

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: XSD::XSDDateTimeImpl
to_obj(klass) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/xsd/datatypes.rb, line 498
  def to_obj(klass)
    if klass == Time
      to_time
    elsif klass == Date
      to_date
    elsif klass == DateTime
      to_datetime
    else
      nil
    end
  end
Register or log in to add new notes.