Class: Hocon::Impl::ResolveStatus

Inherits:
Object
  • Object
show all
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



17
18
19
# File 'lib/hocon/impl/resolve_status.rb', line 17

def self.from_boolean(resolved)
  resolved ? RESOLVED : UNRESOLVED
end

.from_values(values) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/hocon/impl/resolve_status.rb', line 9

def self.from_values(values)
  if values.any? { |v| v.resolve_status == UNRESOLVED }
    UNRESOLVED
  else
    RESOLVED
  end
end