class Jekyll::JekyllRdf::Types::XsdDecimal

Public Class Methods

===(other) click to toggle source
# File lib/jekyll/types/XsdDecimal.rb, line 20
def self.=== other
  return other.to_s.eql? @@class_uri
end
match?(string) click to toggle source
# File lib/jekyll/types/XsdDecimal.rb, line 7
def self.match? string
  return regex.match string
end
regex() click to toggle source
# File lib/jekyll/types/XsdDecimal.rb, line 11
def self.regex
  @@regex ||= /^[+-]?[0-9]*\.[0-9]+$/
  return @@regex
end
to_s() click to toggle source
# File lib/jekyll/types/XsdDecimal.rb, line 24
def self.to_s
  return @@class_uri
end
to_type(string) click to toggle source
# File lib/jekyll/types/XsdDecimal.rb, line 16
def self.to_type string
  return string.to_f.to_s
end