Class: Ra::Pattern::Base
- Inherits:
-
Object
- Object
- Ra::Pattern::Base
- Defined in:
- lib/ra/pattern/base.rb
Overview
An abstract pattern. Any concrete subclass of pattern must implement the method ‘color`.
Instance Method Summary collapse
Instance Method Details
#color(point:) ⇒ Ra::Color
9 10 11 |
# File 'lib/ra/pattern/base.rb', line 9 def color(point:) raise NotImplementedError, '#color must be implemented by a concrete subclass' end |