myexperiment-rest 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/CHANGES +9 -0
  2. data/LICENSE +23 -0
  3. data/README +33 -0
  4. data/Rakefile +45 -0
  5. data/bin/get_workflow_data.rb +31 -0
  6. data/doc/classes/MyExperimentREST.html +113 -0
  7. data/doc/classes/MyExperimentREST/IOData.html +169 -0
  8. data/doc/classes/MyExperimentREST/IOData.src/M000003.html +20 -0
  9. data/doc/classes/MyExperimentREST/ReadWorkflow.html +184 -0
  10. data/doc/classes/MyExperimentREST/ReadWorkflow.src/M000002.html +39 -0
  11. data/doc/classes/MyExperimentREST/ReadWorkflow.src/M000005.html +41 -0
  12. data/doc/classes/MyExperimentREST/TavernaIOData.html +167 -0
  13. data/doc/classes/MyExperimentREST/TavernaIOData.src/M000006.html +20 -0
  14. data/doc/classes/MyExperimentREST/TavernaIOData.src/M000007.html +20 -0
  15. data/doc/classes/MyExperimentREST/TavernaWorkflow.html +209 -0
  16. data/doc/classes/MyExperimentREST/TavernaWorkflow.src/M000005.html +23 -0
  17. data/doc/classes/MyExperimentREST/TavernaWorkflow.src/M000006.html +22 -0
  18. data/doc/classes/MyExperimentREST/Workflow.html +172 -0
  19. data/doc/classes/MyExperimentREST/Workflow.src/M000001.html +21 -0
  20. data/doc/classes/MyExperimentREST/Workflows.html +167 -0
  21. data/doc/classes/MyExperimentREST/Workflows.src/M000004.html +41 -0
  22. data/doc/classes/TestReadWorkflow.html +167 -0
  23. data/doc/classes/TestReadWorkflow.src/M000001.html +18 -0
  24. data/doc/classes/TestReadWorkflow.src/M000002.html +24 -0
  25. data/doc/classes/TestReadWorkflow.src/M000003.html +20 -0
  26. data/doc/classes/TestReadWorkflow.src/M000004.html +20 -0
  27. data/doc/created.rid +1 -0
  28. data/doc/files/bin/get_workflow_data_rb.html +116 -0
  29. data/doc/files/lib/myexperiment-rest/my_experiment_rest_rb.html +110 -0
  30. data/doc/files/lib/myexperiment-rest/myexperiment_rest_rb.html +110 -0
  31. data/doc/files/lib/myexperiment-rest_rb.html +108 -0
  32. data/doc/files/test/test_read_workflow_rb.html +122 -0
  33. data/doc/fr_class_index.html +31 -0
  34. data/doc/fr_file_index.html +29 -0
  35. data/doc/fr_method_index.html +32 -0
  36. data/doc/index.html +24 -0
  37. data/doc/rdoc-style.css +208 -0
  38. data/doc/rdoc/classes/MyExperimentREST.html +117 -0
  39. data/doc/rdoc/classes/MyExperimentREST/TavernaIOData.html +178 -0
  40. data/doc/rdoc/classes/MyExperimentREST/TavernaWorkflow.html +223 -0
  41. data/doc/rdoc/classes/MyExperimentREST/Workflows.html +199 -0
  42. data/doc/rdoc/created.rid +1 -0
  43. data/doc/rdoc/files/CHANGES.html +121 -0
  44. data/doc/rdoc/files/LICENSE.html +133 -0
  45. data/doc/rdoc/files/README.html +148 -0
  46. data/doc/rdoc/files/lib/myexperiment-rest/myexperiment_rest_rb.html +110 -0
  47. data/doc/rdoc/files/lib/myexperiment-rest_rb.html +108 -0
  48. data/doc/rdoc/fr_class_index.html +30 -0
  49. data/doc/rdoc/fr_file_index.html +31 -0
  50. data/doc/rdoc/fr_method_index.html +29 -0
  51. data/doc/rdoc/index.html +24 -0
  52. data/doc/rdoc/rdoc-style.css +208 -0
  53. data/lib/myexperiment-rest.rb +5 -0
  54. data/lib/myexperiment-rest/myexperiment_rest.rb +146 -0
  55. metadata +133 -0
@@ -0,0 +1,184 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: MyExperimentREST::ReadWorkflow</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">MyExperimentREST::ReadWorkflow</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/myexperiment-rest/myexperiment_rest_rb.html">
59
+ lib/myexperiment-rest/myexperiment_rest.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ Connects to myExperiment REST API and creates a <em><a
84
+ href="TavernaWorkflow.html">TavernaWorkflow</a></em> object. It initialises
85
+ the following attributes that you can access: <em>uri</em>,
86
+ <em>workflow_id</em>, <em>workflow_version</em> and <em>workflow</em>.
87
+ </p>
88
+
89
+ </div>
90
+
91
+
92
+ </div>
93
+
94
+ <div id="method-list">
95
+ <h3 class="section-bar">Methods</h3>
96
+
97
+ <div class="name-list">
98
+ <a href="#M000005">new</a>&nbsp;&nbsp;
99
+ </div>
100
+ </div>
101
+
102
+ </div>
103
+
104
+
105
+ <!-- if includes -->
106
+ <div id="includes">
107
+ <h3 class="section-bar">Included Modules</h3>
108
+
109
+ <div id="includes-list">
110
+ <span class="include-name">LibXML</span>
111
+ </div>
112
+ </div>
113
+
114
+ <div id="section">
115
+
116
+
117
+
118
+
119
+
120
+ <div id="attribute-list">
121
+ <h3 class="section-bar">Attributes</h3>
122
+
123
+ <div class="name-list">
124
+ <table>
125
+ <tr class="top-aligned-row context-row">
126
+ <td class="context-item-name">uri</td>
127
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
128
+ <td class="context-item-desc"></td>
129
+ </tr>
130
+ <tr class="top-aligned-row context-row">
131
+ <td class="context-item-name">workflow</td>
132
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
133
+ <td class="context-item-desc"></td>
134
+ </tr>
135
+ <tr class="top-aligned-row context-row">
136
+ <td class="context-item-name">workflow_id</td>
137
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
138
+ <td class="context-item-desc"></td>
139
+ </tr>
140
+ <tr class="top-aligned-row context-row">
141
+ <td class="context-item-name">workflow_version</td>
142
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
143
+ <td class="context-item-desc"></td>
144
+ </tr>
145
+ </table>
146
+ </div>
147
+ </div>
148
+
149
+
150
+
151
+ <!-- if method_list -->
152
+ <div id="methods">
153
+ <h3 class="section-bar">Public Class methods</h3>
154
+
155
+ <div id="method-M000005" class="method-detail">
156
+ <a name="M000005"></a>
157
+
158
+ <div class="method-heading">
159
+ <a href="ReadWorkflow.src/M000005.html" target="Code" class="method-signature"
160
+ onclick="popupCode('ReadWorkflow.src/M000005.html');return false;">
161
+ <span class="method-name">new</span><span class="method-args">(uri)</span>
162
+ </a>
163
+ </div>
164
+
165
+ <div class="method-description">
166
+ <p>
167
+ Requires the URI of the workflow in the repository as a String.
168
+ </p>
169
+ </div>
170
+ </div>
171
+
172
+
173
+ </div>
174
+
175
+
176
+ </div>
177
+
178
+
179
+ <div id="validator-badges">
180
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
181
+ </div>
182
+
183
+ </body>
184
+ </html>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (MyExperimentREST::ReadWorkflow)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/myexperiment-rest/my_experiment_rest.rb, line 18</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">uri</span>)
15
+ <span class="ruby-ivar">@uri</span> = <span class="ruby-identifier">uri</span>
16
+
17
+ <span class="ruby-comment cmt"># Get workflow id</span>
18
+ <span class="ruby-identifier">uri_id</span> = <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/workflows\/(\d+)[\/\.]/</span>)
19
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">uri_id</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
20
+ <span class="ruby-ivar">@workflow_id</span> = <span class="ruby-identifier">uri_id</span>[<span class="ruby-value">1</span>]
21
+ <span class="ruby-keyword kw">else</span>
22
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Could not match workflow id.&quot;</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+
25
+ <span class="ruby-comment cmt"># Get workflow version if it exists</span>
26
+ <span class="ruby-identifier">uri_version</span> = <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/version=(\d+)/</span>)
27
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">uri_version</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
28
+ <span class="ruby-ivar">@workflow_version</span> = <span class="ruby-identifier">uri_version</span>[<span class="ruby-value">1</span>]
29
+ <span class="ruby-keyword kw">else</span>
30
+ <span class="ruby-ivar">@workflow_version</span> = <span class="ruby-value str">''</span>
31
+ <span class="ruby-keyword kw">end</span>
32
+
33
+ <span class="ruby-comment cmt"># Get workflow resource information -- if version is empty it returns the current version</span>
34
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">'http://www.myexperiment.org/workflow.xml'</span>, {<span class="ruby-identifier">:params</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-value str">'id'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{@workflow_id}&quot;</span>, <span class="ruby-value str">'version'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{@workflow_version}&quot;</span>,<span class="ruby-value str">'elements'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'title,description,components'</span>} } )
35
+
36
+ <span class="ruby-ivar">@workflow</span> = <span class="ruby-identifier">populate_workflow</span>(<span class="ruby-identifier">response</span>)
37
+ <span class="ruby-keyword kw">end</span></pre>
38
+ </body>
39
+ </html>
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (MyExperimentREST::ReadWorkflow)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/myexperiment-rest/myexperiment_rest.rb, line 18</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">uri</span>)
15
+ <span class="ruby-ivar">@uri</span> = <span class="ruby-identifier">uri</span>
16
+
17
+ <span class="ruby-comment cmt"># Get workflow id</span>
18
+ <span class="ruby-identifier">uri_id</span> = <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/workflows\/(\d+)/</span>)
19
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">uri_id</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
20
+ <span class="ruby-ivar">@workflow_id</span> = <span class="ruby-identifier">uri_id</span>[<span class="ruby-value">1</span>]
21
+ <span class="ruby-keyword kw">else</span>
22
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Could not match workflow id.&quot;</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+
25
+ <span class="ruby-comment cmt"># Get workflow version if it exists</span>
26
+ <span class="ruby-identifier">uri_version</span> = <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/version=(\d+)/</span>)
27
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">uri_version</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
28
+ <span class="ruby-ivar">@workflow_version</span> = <span class="ruby-identifier">uri_version</span>[<span class="ruby-value">1</span>]
29
+ <span class="ruby-keyword kw">else</span>
30
+ <span class="ruby-ivar">@workflow_version</span> = <span class="ruby-value str">''</span>
31
+ <span class="ruby-keyword kw">end</span>
32
+
33
+ <span class="ruby-comment cmt"># Get workflow resource information -- if version is empty it returns the current version</span>
34
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">'http://www.myexperiment.org/workflow.xml'</span>, {<span class="ruby-identifier">:params</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-value str">'id'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{@workflow_id}&quot;</span>,
35
+ <span class="ruby-value str">'version'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{@workflow_version}&quot;</span>,
36
+ <span class="ruby-value str">'elements'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'title,description,content-uri,components'</span>} } )
37
+
38
+ <span class="ruby-ivar">@workflow</span> = <span class="ruby-identifier">populate_workflow</span>(<span class="ruby-identifier">response</span>)
39
+ <span class="ruby-keyword kw">end</span></pre>
40
+ </body>
41
+ </html>
@@ -0,0 +1,167 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: MyExperimentREST::TavernaIOData</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">MyExperimentREST::TavernaIOData</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/myexperiment-rest/myexperiment_rest_rb.html">
59
+ lib/myexperiment-rest/myexperiment_rest.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ Contains all available information about an input or output: name,
84
+ descriptions and examples. The last two are lists.
85
+ </p>
86
+
87
+ </div>
88
+
89
+
90
+ </div>
91
+
92
+ <div id="method-list">
93
+ <h3 class="section-bar">Methods</h3>
94
+
95
+ <div class="name-list">
96
+ <a href="#M000006">new</a>&nbsp;&nbsp;
97
+ </div>
98
+ </div>
99
+
100
+ </div>
101
+
102
+
103
+ <!-- if includes -->
104
+
105
+ <div id="section">
106
+
107
+
108
+
109
+
110
+
111
+ <div id="attribute-list">
112
+ <h3 class="section-bar">Attributes</h3>
113
+
114
+ <div class="name-list">
115
+ <table>
116
+ <tr class="top-aligned-row context-row">
117
+ <td class="context-item-name">descriptions</td>
118
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
119
+ <td class="context-item-desc"></td>
120
+ </tr>
121
+ <tr class="top-aligned-row context-row">
122
+ <td class="context-item-name">examples</td>
123
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
124
+ <td class="context-item-desc"></td>
125
+ </tr>
126
+ <tr class="top-aligned-row context-row">
127
+ <td class="context-item-name">name</td>
128
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
129
+ <td class="context-item-desc"></td>
130
+ </tr>
131
+ </table>
132
+ </div>
133
+ </div>
134
+
135
+
136
+
137
+ <!-- if method_list -->
138
+ <div id="methods">
139
+ <h3 class="section-bar">Public Class methods</h3>
140
+
141
+ <div id="method-M000006" class="method-detail">
142
+ <a name="M000006"></a>
143
+
144
+ <div class="method-heading">
145
+ <a href="TavernaIOData.src/M000006.html" target="Code" class="method-signature"
146
+ onclick="popupCode('TavernaIOData.src/M000006.html');return false;">
147
+ <span class="method-name">new</span><span class="method-args">(name, descriptions, examples)</span>
148
+ </a>
149
+ </div>
150
+
151
+ <div class="method-description">
152
+ </div>
153
+ </div>
154
+
155
+
156
+ </div>
157
+
158
+
159
+ </div>
160
+
161
+
162
+ <div id="validator-badges">
163
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
164
+ </div>
165
+
166
+ </body>
167
+ </html>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (MyExperimentREST::TavernaIOData)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/myexperiment-rest/myexperiment_rest.rb, line 136</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">descriptions</span>, <span class="ruby-identifier">examples</span>)
15
+ <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
16
+ <span class="ruby-ivar">@descriptions</span> = <span class="ruby-identifier">descriptions</span>
17
+ <span class="ruby-ivar">@examples</span> = <span class="ruby-identifier">examples</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>