Class: Shaped::Shape
- Inherits:
-
Object
- Object
- Shaped::Shape
- Defined in:
- lib/shaped/shape.rb
Direct Known Subclasses
Shaped::Shapes::All, Shaped::Shapes::Any, Shaped::Shapes::Array, Shaped::Shapes::Callable, Shaped::Shapes::Class, Shaped::Shapes::Equality, Shaped::Shapes::Hash, Shaped::Shapes::Method
Instance Method Summary collapse
-
#initialize(_shape_description) ⇒ Shape
constructor
A new instance of Shape.
- #matched_by?(_tested_object) ⇒ Boolean
- #to_s ⇒ Object
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
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_s ⇒ Object
12 13 14 |
# File 'lib/shaped/shape.rb', line 12 def to_s raise("`#to_s` must be implemented for #{self.class}!") end |