Class: Mactag::Ctags

Inherits:
Object
  • Object
show all
Defined in:
lib/mactag/ctags.rb

Overview

Wrapper around Ctags command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input, output) ⇒ Ctags

Returns a new instance of Ctags.



9
10
11
12
# File 'lib/mactag/ctags.rb', line 9

def initialize(input, output)
  @input = Array(input)
  @output = output
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



7
8
9
# File 'lib/mactag/ctags.rb', line 7

def input
  @input
end

#outputObject (readonly)

Returns the value of attribute output.



7
8
9
# File 'lib/mactag/ctags.rb', line 7

def output
  @output
end

Instance Method Details

#createObject



14
15
16
# File 'lib/mactag/ctags.rb', line 14

def create
  system(command)
end