Class: Module

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

Instance Method Summary collapse

Instance Method Details

#run_tool_cmdObject



10
11
12
13
14
15
16
# File 'lib/macroape/cli.rb', line 10

def run_tool_cmd
  if Macroape::STANDALONE
    "ruby #{tool_name}.rb"
  else
    tool_name
  end
end

#tool_nameObject



17
18
19
# File 'lib/macroape/cli.rb', line 17

def tool_name
  self.name.split('::').last.snake_case
end