class Zold::CachedHead
Cached head.
- Author
-
Yegor Bugayenko (yegor256@gmail.com)
- Copyright
-
Copyright © 2018 Yegor Bugayenko
- License
-
MIT
Public Class Methods
new(head)
click to toggle source
# File lib/zold/head.rb, line 59 def initialize(head) @head = head end
Public Instance Methods
fetch()
click to toggle source
# File lib/zold/head.rb, line 67 def fetch @fetch ||= @head.fetch end
flush()
click to toggle source
# File lib/zold/head.rb, line 63 def flush @fetch = nil end