Class: Nib::History::Config
- Inherits:
-
Object
- Object
- Nib::History::Config
- Defined in:
- lib/nib/history/config.rb
Constant Summary collapse
- PATH =
'/tmp/nib/config'.freeze
Instance Attribute Summary collapse
-
#history_command ⇒ Object
readonly
Returns the value of attribute history_command.
-
#host_path ⇒ Object
readonly
Returns the value of attribute host_path.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #container_path ⇒ Object
-
#initialize(type, history_command) ⇒ Config
constructor
A new instance of Config.
Constructor Details
Instance Attribute Details
#history_command ⇒ Object (readonly)
Returns the value of attribute history_command.
6 7 8 |
# File 'lib/nib/history/config.rb', line 6 def history_command @history_command end |
#host_path ⇒ Object (readonly)
Returns the value of attribute host_path.
6 7 8 |
# File 'lib/nib/history/config.rb', line 6 def host_path @host_path end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/nib/history/config.rb', line 6 def type @type end |
Instance Method Details
#container_path ⇒ Object
16 17 18 |
# File 'lib/nib/history/config.rb', line 16 def container_path config_file.path end |