Sha256: 16c8485e11f627fcd18e3a84a416b1771141f20f5ffbda681427c1a9b2672ff4
Contents?: true
Size: 579 Bytes
Versions: 2
Compression:
Stored size: 579 Bytes
Contents
# frozen_string_literal: true # This is the base queue class for Origin queues and Result queues. # # Qfill::List.new(:name => "High List", # :elements => [Thing1, Thing3], # :filter => filter1), module Qfill class List attr_accessor :name, :elements, :filter def initialize(options = {}) raise ArgumentError, "Missing required option :name for #{self.class}.new()" unless options && options[:name] @name = options[:name] @elements = options[:elements] || [] @filter = options[:filter] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qfill-0.1.1 | lib/qfill/list.rb |
qfill-0.1.0 | lib/qfill/list.rb |