method

to_obj

ruby latest stable - Class: XSD::XSDDateTimeImpl

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

to_obj(klass)
public

No documentation available.

# 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