lib/bolognese/schema_org.rb in bolognese-0.7 vs lib/bolognese/schema_org.rb in bolognese-0.7.1
- old
+ new
@@ -60,16 +60,16 @@
def alternate_name
metadata.fetch("alternateName", nil)
end
def author
- a = Array.wrap(metadata.fetch("author", nil)).map { |a| a.except("name") }
- array_unwrap(a)
+ arr = Array.wrap(metadata.fetch("author", nil)).map { |a| a.except("name") }
+ array_unwrap(arr)
end
def editor
- a = Array.wrap(metadata.fetch("editor", nil)).map { |a| a.except("name") }
- array_unwrap(a)
+ arr = Array.wrap(metadata.fetch("editor", nil)).map { |a| a.except("name") }
+ array_unwrap(arr)
end
def description
metadata.fetch("description", nil)
end