Class: Factbase::Once
Overview
Runs only once.
- Author
-
Yegor Bugayenko (yegor256@gmail.com)
- Copyright
-
Copyright © 2024 Yegor Bugayenko
- License
-
MIT
Defined Under Namespace
Classes: After
Instance Method Summary collapse
-
#initialize(fb, func) ⇒ Once
constructor
A new instance of Once.
- #insert ⇒ Object
- #query(expr) ⇒ Object
Constructor Details
#initialize(fb, func) ⇒ Once
Returns a new instance of Once.
33 34 35 36 |
# File 'lib/judges/fb/once.rb', line 33 def initialize(fb, func) @fb = fb @func = func end |