Class: RIO::Match::Record::Proc
Instance Method Summary collapse
-
#initialize(arg, therio) ⇒ Proc
constructor
A new instance of Proc.
- #match?(val, recno) ⇒ Boolean
Methods inherited from Base
#inspect, #match_all?, #match_none?, #val
Constructor Details
#initialize(arg, therio) ⇒ Proc
Returns a new instance of Proc.
67 68 69 70 |
# File 'lib/rio/matchrecord.rb', line 67 def initialize(arg,therio) super(arg) @therio = therio end |
Instance Method Details
#match?(val, recno) ⇒ Boolean
71 72 73 74 |
# File 'lib/rio/matchrecord.rb', line 71 def match?(val,recno) args = [val,recno,@therio] @select_arg.call(*args[0,@select_arg.arity]) end |