Class: Runt::ApplyLast

Inherits:
Object
  • Object
show all
Defined in:
lib/runt.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeApplyLast

Returns a new instance of ApplyLast.



80
81
82
# File 'lib/runt.rb', line 80

def initialize()
  @negate=Proc.new{|n| n*-1}
end

Instance Method Details

#[](arg) ⇒ Object



83
84
85
# File 'lib/runt.rb', line 83

def [](arg)
  @negate.call(arg)
end