-
-
Notifications
You must be signed in to change notification settings - Fork 938
Expand file tree
/
Copy pathpackage.rb
More file actions
35 lines (31 loc) · 644 Bytes
/
package.rb
File metadata and controls
35 lines (31 loc) · 644 Bytes
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
27
28
29
30
31
32
33
34
35
# Output package.html for org.jruby.util.cli
require 'erb'
template = <<TEMPLATE
<body>
The CLI package provides utilities for JRuby's command-line interface.
<div>A complete listing of Options-borne configuration properties:
<dl>
<%
require 'java'
org.jruby.util.cli.Options::PROPERTIES.each do |property|
%>
<dt><%= property.name %></dt>
<dd>
<div><%= property.description %></div>
<div>Options:
<% property.options.each do |option| %>
<%=
if property.defval == option
"<b>jruby." + option.to_s + "</b>"
else
"jruby." + option.to_s
end
%>
<% end %></div>
</dd>
<% end %>
</dl>
<div>
</body>
TEMPLATE
ERB.new(template).result