Class: EasySwig::ApiMethod

Inherits:
ApiFunction show all
Defined in:
lib/apinodes/api_method.rb

Instance Attribute Summary collapse

Attributes inherited from ApiFunction

#match_signature, #match_type

Attributes inherited from ApiNode

#basename, #directory, #features, #header_file, #ignore, #match, #node_type, #parent, #target_name, #wrapped_node

Instance Method Summary collapse

Methods inherited from ApiFunction

#api_nodes

Methods inherited from ApiNode

#assoc_functions, #assoc_members, #assoc_with_node, #fullname, #initialize, #method_missing, #to_str

Methods included from Util

#del_prefix_class, #escape_all, #escape_const_ref_ptr, #escape_template, #gen_dir, #home_dir, #is_primitive?, #is_std?, #lib_dir, #logs_dir, #output_dir, #read_file, #rename_files, #swig_dir, #write_file

Constructor Details

This class inherits a constructor from EasySwig::ApiNode

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EasySwig::ApiNode

Instance Attribute Details

#match_constructorObject

Returns the value of attribute match_constructor.



4
5
6
# File 'lib/apinodes/api_method.rb', line 4

def match_constructor
  @match_constructor
end

#match_staticObject

Returns the value of attribute match_static.



5
6
7
# File 'lib/apinodes/api_method.rb', line 5

def match_static
  @match_static
end

Instance Method Details

#constructor?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/apinodes/api_method.rb', line 7

def constructor?
  @target_name==parent.target_name
end