Monkeybars::HashNestingValidation

Public Instance Methods

from_view_method() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 112
def from_view_method
  if self[:using].kind_of? Array
    self[:using][1]
  else
    nil
  end
end
from_view_method_present?() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 100
def from_view_method_present?
  !from_view_method.nil?
end
methods_only?() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 88
def methods_only?
  (to_view_method_present? or from_view_method_present?) and not property_present?
end
property_only?() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 84
def property_only?
  property_present? and not (to_view_method_present? and from_view_method_present?)
end
property_present?() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 92
def property_present?
  !self[:view].nil?
end
to_view_method() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 104
def to_view_method
  if self[:using].kind_of? Array
    self[:using].first
  else
    self[:using]
  end
end
to_view_method_present?() click to toggle source
# File lib/monkeybars/view_nesting.rb, line 96
def to_view_method_present?
  !to_view_method.nil?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.