Sha256: 0a31b3d96c5af1ce0372394d049c719fb3da3e068a358881d0762c558941e338
Contents?: true
Size: 312 Bytes
Versions: 7
Compression:
Stored size: 312 Bytes
Contents
# frozen_string_literal: true module Noticent module Definitions class Product attr_reader :name def initialize(config, name) raise BadConfiguration, 'product name should be a symbol' unless name.is_a? Symbol @config = config @name = name end end end end
Version data entries
7 entries across 7 versions & 1 rubygems