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.



140
141
142
# File 'lib/runt.rb', line 140

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

Instance Method Details

#[](arg) ⇒ Object



143
144
145
# File 'lib/runt.rb', line 143

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