lib/lovely_rufus/layer.rb in lovely_rufus-0.1.2 vs lib/lovely_rufus/layer.rb in lovely_rufus-0.2.0

- old
+ new

@@ -1,12 +1,14 @@ -module LovelyRufus class Layer - def initialize next_layer = -> wrap { wrap } - @next_layer = next_layer - end +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 + def call(_opts = {}) + fail 'Layer subclasses must define #call' + end - attr_reader :next_layer - private :next_layer -end end + attr_reader :next_layer + private :next_layer + end +end