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

Version Path
verdict-0.16.1 lib/verdict/metadata.rb
verdict-0.16.0 lib/verdict/metadata.rb
verdict-0.15.2 lib/verdict/metadata.rb
verdict-0.15.1 lib/verdict/metadata.rb
verdict-0.15.0 lib/verdict/metadata.rb
verdict-0.14.0 lib/verdict/metadata.rb
verdict-0.13.0 lib/verdict/metadata.rb
verdict-0.12.0 lib/verdict/metadata.rb
verdict-0.11.0 lib/verdict/metadata.rb
verdict-0.10.0 lib/verdict/metadata.rb
verdict-0.9.0 lib/verdict/metadata.rb
verdict-0.8.0 lib/verdict/metadata.rb
verdict-0.7.0 lib/verdict/metadata.rb
verdict-0.6.3 lib/verdict/metadata.rb
verdict-0.6.2 lib/verdict/metadata.rb
verdict-0.6.1 lib/verdict/metadata.rb
verdict-0.6.0 lib/verdict/metadata.rb
verdict-0.5.0 lib/verdict/metadata.rb
verdict-0.4.1 lib/verdict/metadata.rb
verdict-0.4.0 lib/verdict/metadata.rb