Class: SyntaxTree::CLI::Action
- Inherits:
-
Object
- Object
- SyntaxTree::CLI::Action
- Defined in:
- lib/syntax_tree/cli.rb
Overview
The parent action class for the CLI that implements the basics.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #failure ⇒ Object
-
#initialize(options) ⇒ Action
constructor
A new instance of Action.
- #run(item) ⇒ Object
- #success ⇒ Object
Constructor Details
#initialize(options) ⇒ Action
Returns a new instance of Action.
111 112 113 |
# File 'lib/syntax_tree/cli.rb', line 111 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
109 110 111 |
# File 'lib/syntax_tree/cli.rb', line 109 def @options end |
Instance Method Details
#failure ⇒ Object
121 122 |
# File 'lib/syntax_tree/cli.rb', line 121 def failure end |
#run(item) ⇒ Object
115 116 |
# File 'lib/syntax_tree/cli.rb', line 115 def run(item) end |
#success ⇒ Object
118 119 |
# File 'lib/syntax_tree/cli.rb', line 118 def success end |