lib/plumb/metadata.rb in plumb-0.0.3 vs lib/plumb/metadata.rb in plumb-0.0.4

- old
+ new

@@ -1,15 +1,19 @@ # frozen_string_literal: true module Plumb class Metadata - include Steppable + include Composable attr_reader :metadata def initialize(metadata) @metadata = metadata freeze + end + + def ==(other) + other.is_a?(self.class) && @metadata == other.metadata end def call(result) = result private def _inspect = "Metadata[#{@metadata.inspect}]"