class Mida::DataType::Generic

The base DataType Parser

Public Class Methods

parse(value) click to toggle source

Convenience method, same as new

# File lib/mida_vocabulary/datatype/generic.rb, line 10
def self.parse(value)
  self.new(value)
end

Public Instance Methods

==(other) click to toggle source
# File lib/mida_vocabulary/datatype/generic.rb, line 26
def ==(other)
  @parsedValue.to_s.downcase == other.to_s.downcase
end
method_missing(name, *args, &block) click to toggle source
# File lib/mida_vocabulary/datatype/generic.rb, line 14
def method_missing(name, *args, &block)
  @parsedValue.send(name, *args, &block)
end
to_s() click to toggle source
# File lib/mida_vocabulary/datatype/generic.rb, line 18
def to_s
  @parsedValue.to_s
end
to_yaml(options={}) click to toggle source
# File lib/mida_vocabulary/datatype/generic.rb, line 22
def to_yaml(options={})
  to_s.to_yaml(options)
end