class ActiveFedora::RDF::ValueCaster

Public Class Methods

new(value) click to toggle source
# File lib/active_fedora/rdf/value_caster.rb, line 3
def initialize(value)
  @value = value
end

Public Instance Methods

value() click to toggle source
# File lib/active_fedora/rdf/value_caster.rb, line 7
def value
  if @value.respond_to?(:language) # Cast RDF::Literals
    @value.to_s
  else
    @value
  end
end