Class: SyntaxTree::CLI::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/cli.rb

Overview

The parent action class for the CLI that implements the basics.

Direct Known Subclasses

AST, CTags, Check, Debug, Doc, Expr, Format, Json, Match, Search, Write

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



109
110
111
# File 'lib/syntax_tree/cli.rb', line 109

def options
  @options
end

Instance Method Details

#failureObject



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

#successObject



118
119
# File 'lib/syntax_tree/cli.rb', line 118

def success
end