Class: Hocon::Impl::ResolveStatus
- Inherits:
-
Object
- Object
- Hocon::Impl::ResolveStatus
- Defined in:
- lib/hocon/impl/resolve_status.rb
Constant Summary collapse
- UNRESOLVED =
0
- RESOLVED =
1
Class Method Summary collapse
Class Method Details
.from_boolean(resolved) ⇒ Object
15 16 17 |
# File 'lib/hocon/impl/resolve_status.rb', line 15 def self.from_boolean(resolved) resolved ? RESOLVED : UNRESOLVED end |
.from_values(values) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/hocon/impl/resolve_status.rb', line 7 def self.from_values(values) if values.any? { |v| v.resolve_status == UNRESOLVED } UNRESOLVED else RESOLVED end end |