Module: Rabbit::Source::LimitAccessInterval
- Included in:
- URI
- Defined in:
- lib/rabbit/source/base.rb
Constant Summary collapse
- MINIMUM_ACCESS_TIME =
60
Instance Method Summary collapse
Instance Method Details
#initialize(*args, &block) ⇒ Object
152 153 154 155 |
# File 'lib/rabbit/source/base.rb', line 152 def initialize(*args, &block) update_last_access_time super end |
#old?(current, get_latest_method_name) ⇒ Boolean
157 158 159 160 161 |
# File 'lib/rabbit/source/base.rb', line 157 def old?(current, get_latest_method_name) result = (can_access? and super) update_last_access_time if result result end |