Method: ExtNode#child_of?

Defined in:
lib/extjsml/basenode.rb

#child_of?(*xxtype) ⇒ Boolean

Returns:



168
169
170
171
172
173
174
175
176
# File 'lib/extjsml/basenode.rb', line 168

def child_of?(*xxtype)
  if parent.nil?
    false
  elsif xxtype.include?(parent.xtype)
    true
  else
    parent.child_of?(*xxtype)
  end
end