Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/pattern-match/experimental.rb
Instance Method Summary collapse
Instance Method Details
#assert_pattern(pattern) ⇒ Object
185 186 187 188 189 |
# File 'lib/pattern-match/experimental.rb', line 185 def assert_pattern(pattern) match(self) do Kernel.eval("with(#{pattern}) { self }", Kernel.binding) end end |