Class: Shaped::Shape

Inherits:
Object
  • Object
show all
Defined in:
lib/shaped/shape.rb

Instance Method Summary collapse

Constructor Details

#initialize(_shape_description) ⇒ Shape

Returns a new instance of Shape.



4
5
6
# File 'lib/shaped/shape.rb', line 4

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

Instance Method Details

#matched_by?(_tested_object) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/shaped/shape.rb', line 8

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

#to_sObject



12
13
14
# File 'lib/shaped/shape.rb', line 12

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