Sha256: ae81886658383700f32b762fd70eca5e08104b082a12dbb2f882cf9c341071ff
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 Bytes
Contents
# frozen_string_literal: true module LovelyRufus module Layers class Layer def initialize(next_layer = -> (wrap) { wrap }) @next_layer = next_layer end def call(_wrap) raise 'Layer subclasses must define #call that takes a Wrap' end private attr_reader :next_layer end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lovely_rufus-1.0.1 | lib/lovely_rufus/layers/layer.rb |