Sha256: d7679b0589a714574af40633fb662a55bc569071589bf8af7e14147503feda54

Contents?: true

Size: 248 Bytes

Versions: 3

Compression:

Stored size: 248 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

3 entries across 3 versions & 1 rubygems

Version Path
lovely_rufus-0.1.2 lib/lovely_rufus/layer.rb
lovely_rufus-0.1.1 lib/lovely_rufus/layer.rb
lovely_rufus-0.1.0 lib/lovely_rufus/layer.rb