Sha256: 913c5d31757f10d1012e02d0bea53b73c706f829b0c32de5f935bdc935032edd
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module Rubysmith module Builders # Provides default implementation from which builders can inherit from. class Abstract def self.call(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call fail NoMethodError, "`#{self.class}##{__method__} #{method(__method__).parameters}` must be implemented." end protected attr_reader :configuration, :builder end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-6.10.0 | lib/rubysmith/builders/abstract.rb |
rubysmith-6.9.0 | lib/rubysmith/builders/abstract.rb |