Sha256: 3ecf1cea39208b58d1f195c1453f1b613cd1d7acfecf0cb87d421e4effb4a19f
Contents?: true
Size: 715 Bytes
Versions: 27
Compression:
Stored size: 715 Bytes
Contents
module Verdict::Metadata def self.included(klass) klass.send(:attr_reader, :metadata) end def name(new_name = nil) @metadata ||= {} return @metadata[:name] if new_name.nil? @metadata[:name] = new_name end def description(new_description = nil) @metadata ||= {} return @metadata[:description] if new_description.nil? @metadata[:description] = new_description end def screenshot(new_screenshot = nil) @metadata ||= {} return @metadata[:screenshot] if new_screenshot.nil? @metadata[:screenshot] = new_screenshot end def owner(new_owner = nil) @metadata ||= {} return @metadata[:owner] if new_owner.nil? @metadata[:owner] = new_owner end end
Version data entries
27 entries across 27 versions & 1 rubygems