Sha256: 75fb3c5370ad2e0cbea4d614ff256606f15af93c86afcf08b959153cb4db70b6

Contents?: true

Size: 384 Bytes

Versions: 17

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

class Shaped::Shape
  def initialize(_shape_description)
    raise("`#initialize(shape_description)` must be implemented for #{self.class}!")
  end

  def matched_by?(_tested_object)
    raise("`#matched_by?(tested_object)` must be implemented for #{self.class}!")
  end

  def to_s
    raise("`#to_s` must be implemented for #{self.class}!")
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shaped-0.14.0 lib/shaped/shape.rb
shaped-0.13.0 lib/shaped/shape.rb
shaped-0.12.0 lib/shaped/shape.rb
shaped-0.11.0 lib/shaped/shape.rb
shaped-0.10.0 lib/shaped/shape.rb
shaped-0.9.1 lib/shaped/shape.rb
shaped-0.9.0 lib/shaped/shape.rb
shaped-0.8.2 lib/shaped/shape.rb
shaped-0.8.0 lib/shaped/shape.rb
shaped-0.7.3 lib/shaped/shape.rb
shaped-0.7.2 lib/shaped/shape.rb
shaped-0.7.1 lib/shaped/shape.rb
shaped-0.7.0 lib/shaped/shape.rb
shaped-0.6.4 lib/shaped/shape.rb
shaped-0.6.3 lib/shaped/shape.rb
shaped-0.6.2 lib/shaped/shape.rb
shaped-0.6.1 lib/shaped/shape.rb