Module: DrgDSL::Visitor::ClassMethods

Defined in:
lib/drgdsl/visitor.rb

Instance Method Summary collapse

Instance Method Details

#cacheHash

Returns in-memory Ruby Hash.

Returns:

  • (Hash)

    in-memory Ruby Hash



23
24
25
# File 'lib/drgdsl/visitor.rb', line 23

def cache
  @cache ||= {}
end

#clear_cache!Object



27
28
29
# File 'lib/drgdsl/visitor.rb', line 27

def clear_cache!
  @cache = {}
end