Object
A formal object representing the view’s model and transfer state. This used to be an array so we emulate the array methods that are in common usage.
# File lib/monkeybars/controller.rb, line 613 def initialize(model, transfer) @model, @transfer = model, transfer end
# File lib/monkeybars/controller.rb, line 617 def [](index) case index when 0 @model when 1 @transfer else nil end end
# File lib/monkeybars/controller.rb, line 628 def first @model end
# File lib/monkeybars/controller.rb, line 632 def last @transfer end
[Validate]
Generated with the Darkfish Rdoc Generator 2.