lib/spread2rdf/schema/column.rb in spread2rdf-0.1.2 vs lib/spread2rdf/schema/column.rb in spread2rdf-0.1.3
- old
+ new
@@ -51,13 +51,14 @@
"#{super} of #{sheet}"
end
def object_mapping_mode
case
- when object.nil? then :to_string
- when object.is_a?(Proc) then :custom
- when !object[:uri].nil? then :new_resource
- when !object[:from].nil? then :resource_ref
+ when object.nil? then :to_string
+ when object.is_a?(Proc) then :custom
+ when !object[:uri].nil? then :new_resource
+ when !object[:from].nil? then :resource_ref
+ when !object[:language].nil? then :to_string
else
raise "mapping specification error: don't know how to map #{self}"
end
end