method

screen_data

Importance_0
v1_8_6_287 - Show latest stable - 0 notes - Class: XSD::XSDDecimal
screen_data(d) private

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 242
  def screen_data(d)
    if d.is_a?(String)
      # Integer("00012") => 10 in Ruby.
      d.sub!(/^([+\-]?)0*(?=\d)/, "\\1")
    end
    screen_data_str(d)
  end
Register or log in to add new notes.