Class: CtagsSourceStructure
- Inherits:
-
SourceStructure
- Object
- SourceStructure
- CtagsSourceStructure
- Defined in:
- ext/ae-editor/ae-editor.rb
Instance Attribute Summary
Attributes inherited from SourceStructure
Instance Method Summary collapse
- #build_structure ⇒ Object
- #ctags ⇒ Object
-
#initialize(_file) ⇒ CtagsSourceStructure
constructor
A new instance of CtagsSourceStructure.
Methods inherited from SourceStructure
#class_node_by_line, #deep_node_by_line, #node_by_line
Constructor Details
#initialize(_file) ⇒ CtagsSourceStructure
Returns a new instance of CtagsSourceStructure.
89 90 91 92 93 |
# File 'ext/ae-editor/ae-editor.rb', line 89 def initialize(_file) super() @file = _file build_structure end |
Instance Method Details
#build_structure ⇒ Object
95 96 97 98 99 100 |
# File 'ext/ae-editor/ae-editor.rb', line 95 def build_structure output = output.each {|line| p line.split("\t") } end |
#ctags ⇒ Object
102 103 104 105 106 107 108 109 |
# File 'ext/ae-editor/ae-editor.rb', line 102 def _cmd_ = "|ctags -x -u #{@file}" to_ret = '' open(_cmd_, "r"){|f| to_ret = f.readlines } to_ret end |