Class: ORI::Config

Inherits:
Object show all
Defined in:
lib/ori/config.rb

Overview

Configuration object.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Config) initialize(attrs = {})



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