Module: Factbase::Term::System
- Included in:
- Factbase::Term
- Defined in:
- lib/factbase/terms/system.rb
Overview
System-level terms.
- Author
-
Yegor Bugayenko ([email protected])
- Copyright
-
Copyright © 2024 Yegor Bugayenko
- License
-
MIT
Instance Method Summary collapse
Instance Method Details
#env(fact, maps) ⇒ Object
31 32 33 34 35 |
# File 'lib/factbase/terms/system.rb', line 31 def env(fact, maps) assert_args(2) n = the_values(0, fact, maps)[0] ENV.fetch(n.upcase) { the_values(1, fact, maps)[0] } end |