Sha256: 5156f12b53573ac9c322c0ea64fd0e4ad69d879df947c9309fb3f74322b65341

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

# Stubs for classes that mimic jsus classes without being actually them


class Source
  attr_accessor :provides
  attr_accessor :dependencies
  attr_accessor :content

  def initialize(options = {})
    options.each do |attr, value|
      send("#{attr}=", value)
    end
  end
end


class Package
  attr_accessor :name

  def initialize(options = {})
    options.each do |attr, value|
      send("#{attr}=", value)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jsus-0.1.6 spec/shared/class_stubs.rb
jsus-0.1.5 spec/shared/class_stubs.rb
jsus-0.1.4 spec/shared/class_stubs.rb
jsus-0.1.3 spec/shared/class_stubs.rb
jsus-0.1.2 spec/shared/class_stubs.rb