Class: VFS::Command

Inherits:
CLAide::Command
  • Object
show all
Defined in:
lib/yaml-vfs/command.rb,
lib/yaml-vfs/command/yaml_vfs_writer.rb

Overview

The primary Command for VFS.

Direct Known Subclasses

YAMLWriter

Defined Under Namespace

Classes: YAMLWriter

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Command

Returns a new instance of Command.



17
18
19
20
21
22
23
# File 'lib/yaml-vfs/command.rb', line 17

def initialize(argv)
  super
  return if ansi_output?

  Colored2.disable!
  String.send(:define_method, :colorize) { |string, _| string }
end