Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/like_structure/extensions.rb
Instance Method Summary collapse
Instance Method Details
#like?(pattern) ⇒ Boolean
3 4 5 |
# File 'lib/like_structure/extensions.rb', line 3 def like?(pattern) pattern.reverse_like?(self) end |
#reverse_like?(actual) ⇒ Boolean
6 7 8 |
# File 'lib/like_structure/extensions.rb', line 6 def reverse_like?(actual) actual == self end |