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, Check, Debug, Doc, Format, Json, Match, Write

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Action

Returns a new instance of Action.



75
76
77
# File 'lib/syntax_tree/cli.rb', line 75

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



73
74
75
# File 'lib/syntax_tree/cli.rb', line 73

def options
  @options
end

Instance Method Details

#failureObject



85
86
# File 'lib/syntax_tree/cli.rb', line 85

def failure
end

#run(item) ⇒ Object



79
80
# File 'lib/syntax_tree/cli.rb', line 79

def run(item)
end

#successObject



82
83
# File 'lib/syntax_tree/cli.rb', line 82

def success
end