Class: ORI::Config
Overview
Configuration object.
Instance Attribute Summary collapse
-
#color ⇒ Object
Enable color.
-
#frontend ⇒ Object
RI frontend command to use.
-
#pager ⇒ Object
Paging program to use.
-
#shell_escape ⇒ Object
Shell escape mode.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(attrs = {}) ⇒ Config
Returns a new instance of Config.
23 24 25 |
# File 'lib/ori/config.rb', line 23 def initialize(attrs = {}) attrs.each {|k, v| send("#{k}=", v)} end |
Instance Attribute Details
#color ⇒ Object
Enable color. Example:
true
7 8 9 |
# File 'lib/ori/config.rb', line 7 def color @color end |
#frontend ⇒ Object
RI frontend command to use. %s
is replaced with sought topic. Example:
ri -T -f ansi %s
12 13 14 |
# File 'lib/ori/config.rb', line 12 def frontend @frontend end |
#pager ⇒ Object
Paging program to use. Examples:
less -R
more
18 19 20 |
# File 'lib/ori/config.rb', line 18 def pager @pager end |
#shell_escape ⇒ Object
Shell escape mode. :unix
or :windows
.
21 22 23 |
# File 'lib/ori/config.rb', line 21 def shell_escape @shell_escape end |