Class methods.
API:
public
Overloads:
Runs the metadata block in a metadata instance, and then sets the metadata information for this star.
Yields:
Returns:
Returns the metadata for this star.
24 25 26 27 28 29 30 31 32
# File 'lib/nova/common/metadata.rb', line 24 def metadata(&block) if block_given? data = Data.new data.instance_exec data, &block @metadata = data else @metadata ||= Data.new end end