Class: CoderCompanion::Cpp::CppTreeWalker
- Inherits:
-
TreeWalker
- Object
- TreeWalker
- CoderCompanion::Cpp::CppTreeWalker
- Defined in:
- lib/codercompanion/cpp/cpp_tree_walker.rb
Instance Method Summary collapse
Instance Method Details
#build_class(klass, modified) ⇒ Object
15 16 17 |
# File 'lib/codercompanion/cpp/cpp_tree_walker.rb', line 15 def build_class(klass, modified) puts klass.name end |
#create_uploadable(results) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/codercompanion/cpp/cpp_tree_walker.rb', line 4 def create_uploadable(results) obj = {} namespace = results.first namespace.classes.each do |klass| modified = CoderCompanion::CacheHandler.is_file_modified?(klass.file) CoderCompanion::CacheHandler.update_cache_path(klass.file) obj[klass] = build_class(klass, modified) end end |