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

#initialize(attrs = {}) ⇒ 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

#colorObject

Enable color. Example:

true


7
8
9
# File 'lib/ori/config.rb', line 7

def color
  @color
end

#frontendObject

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

#pagerObject

Paging program to use. Examples:

less -R
more


18
19
20
# File 'lib/ori/config.rb', line 18

def pager
  @pager
end

#shell_escapeObject

Shell escape mode. :unix or :windows.



21
22
23
# File 'lib/ori/config.rb', line 21

def shell_escape
  @shell_escape
end