Sha256: 9e27b22eae69dad8677932e9b590b6ec8fff7a37dfe6750ba92f46c9d0352eea

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

module LovelyRufus
  class Layer
    def initialize(next_layer = -> (wrap) { wrap })
      @next_layer = next_layer
    end

    def call(_opts = {})
      fail 'Layer subclasses must define #call'
    end

    attr_reader :next_layer
    private     :next_layer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lovely_rufus-0.2.1 lib/lovely_rufus/layer.rb
lovely_rufus-0.2.0 lib/lovely_rufus/layer.rb