Parent

Methods

Monkeybars::ViewState

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.

Attributes

model[R]
transfer[R]

Public Class Methods

new(model, transfer) click to toggle source
# File lib/monkeybars/controller.rb, line 613
def initialize(model, transfer)
  @model, @transfer = model, transfer
end

Public Instance Methods

[](index) click to toggle source
# File lib/monkeybars/controller.rb, line 617
def [](index)
  case index
  when 0
    @model
  when 1
    @transfer
  else
    nil
  end
end
first() click to toggle source
# File lib/monkeybars/controller.rb, line 628
def first
  @model
end
last() click to toggle source
# File lib/monkeybars/controller.rb, line 632
def last
  @transfer
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.