summaryrefslogtreecommitdiff
path: root/Examples/test-suite/ruby_alias_method.i
blob: 9ddcfce5ec9e3a45f0cdd00dcd81ec37fcbab09e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%module ruby_alias_method
%include <std_string.i>

%alias Synonym::getMyName "nickname,fullname"

%inline %{

class Synonym {
private:
  std::string myName;

public:
  Synonym(std::string myName);

  std::string getMyName();
};

Synonym::Synonym(std::string myName){
  this->myName = myName;
};

std::string Synonym::getMyName(){
  return this->myName;
};

%}