Module: Kubes::Compiler::Decorator::Hashable::Storage

Extended by:
Storage
Included in:
Storage
Defined in:
lib/kubes/compiler/decorator/hashable/storage.rb

Constant Summary collapse

@@md5s =
{}

Instance Method Summary collapse

Instance Method Details

#fetch(kind, name) ⇒ Object



9
10
11
12
# File 'lib/kubes/compiler/decorator/hashable/storage.rb', line 9

def fetch(kind, name)
  @@md5s[kind] ||= {}
  @@md5s[kind][name]
end

#md5sObject



14
15
16
# File 'lib/kubes/compiler/decorator/hashable/storage.rb', line 14

def md5s
  @@md5s
end

#store(kind, name, md5) ⇒ Object



4
5
6
7
# File 'lib/kubes/compiler/decorator/hashable/storage.rb', line 4

def store(kind, name, md5)
  @@md5s[kind] ||= {}
  @@md5s[kind][name] = md5
end