Parent

Monkeybars::Nesting

Public Class Methods

__new__(nesting_options = {}) click to toggle source
Alias for: new
new(nesting_options = {}) click to toggle source
# File lib/monkeybars/view_nesting.rb, line 7
def self.new(nesting_options = {})
  nesting_options.validate_only(:sub_view, :using, :view)
  nesting_options.extend Monkeybars::HashNestingValidation

  if nesting_options.property_only?
    PropertyNesting.__new__(nesting_options)
  elsif nesting_options.methods_only?
    MethodNesting.__new__(nesting_options)
  else
    raise InvalidNestingError, "Cannot determine nesting type with parameters #{nesting_options.inspect}"
  end
end
Also aliased as: __new__
new(properties) click to toggle source
# File lib/monkeybars/view_nesting.rb, line 20
def initialize(properties)
  @sub_view = properties[:sub_view]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.