Class: Lutaml::Cli::InteractiveShell::CommandBase
- Inherits:
-
Object
- Object
- Lutaml::Cli::InteractiveShell::CommandBase
show all
- Defined in:
- lib/lutaml/cli/interactive_shell/command_base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of CommandBase.
9
10
11
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 9
def initialize(shell)
@shell = shell
end
|
Instance Attribute Details
#shell ⇒ Object
Returns the value of attribute shell.
7
8
9
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 7
def shell
@shell
end
|
Instance Method Details
#bookmarks ⇒ Object
21
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 21
def bookmarks = shell.bookmarks
|
#config ⇒ Object
20
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 20
def config = shell.config
|
#current_path ⇒ Object
14
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 14
def current_path = shell.current_path
|
#current_path=(path) ⇒ Object
16
17
18
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 16
def current_path=(path)
shell.instance_variable_set(:@current_path, path)
end
|
#last_results ⇒ Object
22
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 22
def last_results = shell.last_results
|
#last_results=(results) ⇒ Object
24
25
26
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 24
def last_results=(results)
shell.instance_variable_set(:@last_results, results)
end
|
#path_history ⇒ Object
28
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 28
def path_history = shell.path_history
|
#repository ⇒ Object
13
|
# File 'lib/lutaml/cli/interactive_shell/command_base.rb', line 13
def repository = shell.repository
|