Class: Fanforce
- Inherits:
-
Object
- Object
- Fanforce
- Defined in:
- lib/fanforce/utils.rb,
lib/fanforce/utils/version.rb
Defined Under Namespace
Modules: InternalUtils, Utils
Class Method Summary collapse
Class Method Details
.env(&block) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/fanforce/utils.rb', line 2 def self.env(&block) if !block.nil? @env = block elsif !@env.nil? @env.call() else {} end end |