module Riml::NotNestedUnder
Public Instance Methods
non_nested?(klass = not_nested_under_class)
click to toggle source
# File lib/riml/nodes.rb, line 61 def non_nested?(klass = not_nested_under_class) n = self while (n = n.parent) != nil return false if n.is_a?(klass) end true end
not_nested_under_class()
click to toggle source
override if applicable
# File lib/riml/nodes.rb, line 70 def not_nested_under_class self.class end