Method: EasySwig::ApiClass#assoc_methods

Defined in:
lib/apinodes/api_class.rb

#assoc_methodsObject



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/apinodes/api_class.rb', line 54

def assoc_methods
	all_methods = @wrapped_node.methods + @wrapped_node.methods('public', 'static', nil)
	all_methods.reject!{ |f| f.basename == f.basename.upcase }
	ign_methods = @ignored_methods.map{|i| i.basename}
  if @wrap_methods
    all_methods.each { |m|
      if not ign_methods.include?(m.basename)
        hash = {'features' => @features, 'node_type' => 'method', 'parent' => self, 'basename' => m.basename }
        @api_methods << ApiMethod.new(hash).assoc_with_node(m)
      end
    }
  else
    assoc_functions(all_methods, @api_methods, @ignored_methods)
  end
end