Overloads:
Get the namespace of this object.
Returns:
A colon separated namespace, for example og:image.
og:image
Set the namespace of this object.
namespace :og, :image
Parameters:
The individual parts of the namespace as list
115 116 117 118 119
# File 'lib/open_graph_reader/object/dsl.rb', line 115 def namespace *names return @namespace if names.empty? @namespace = names.join(":") Registry.register @namespace, self end