class Patm::CaseBinder

Public Class Methods

new(pat) click to toggle source
# File lib/patm.rb, line 648
def initialize(pat)
  @pat = pat
  @match = Match.new
end

Public Instance Methods

===(obj) click to toggle source
# File lib/patm.rb, line 653
def ===(obj)
  @pat.execute(@match, obj)
end
[](i) click to toggle source
# File lib/patm.rb, line 657
def [](i); @match[i]; end