Class: ORI::Config
Overview
Configuration object.
Instance Attribute Summary (collapse)
-
- (Object) color
Enable color.
-
- (Object) frontend
RI frontend command to use.
-
- (Object) pager
Paging program to use.
-
- (Object) shell_escape
Shell escape mode.
Instance Method Summary (collapse)
-
- (Config) initialize(attrs = {})
constructor
A new instance of Config.
Constructor Details
- (Config) initialize(attrs = {})
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
- (Object) color
Enable color. Example:
true
7 8 9 |
# File 'lib/ori/config.rb', line 7 def color @color end |
- (Object) frontend
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 |
- (Object) pager
Paging program to use. Examples:
less -R
more
18 19 20 |
# File 'lib/ori/config.rb', line 18 def pager @pager end |
- (Object) shell_escape
Shell escape mode. :unix or :windows.
21 22 23 |
# File 'lib/ori/config.rb', line 21 def shell_escape @shell_escape end |