Monkeybars::PropertyNesting

Public Class Methods

new(properties) click to toggle source
# File lib/monkeybars/view_nesting.rb, line 26
def initialize(properties)
  super
  @view_property = properties[:view]
end

Public Instance Methods

add(view, nested_view, nested_component, model, transfer) click to toggle source
# File lib/monkeybars/view_nesting.rb, line 39
def add(view, nested_view, nested_component, model, transfer)
  instance_eval("view.#{@view_property}.add nested_component")
end
nests_with_add?() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 31
def nests_with_add?
  true
end
nests_with_remove?() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 35
def nests_with_remove?
  true
end
remove(view, nested_view, nested_component, model, transfer) click to toggle source
# File lib/monkeybars/view_nesting.rb, line 43
def remove(view, nested_view, nested_component, model, transfer)
  instance_eval("view.#{@view_property}.remove nested_component")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.