# 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
Generated with the Darkfish Rdoc Generator 2.