Module: Fvm::System

Defined in:
lib/fvm.rb

Class Method Summary collapse

Class Method Details

.active?(build) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/fvm.rb', line 27

def self.active?( build )
  active_version? ? active_version.version.eql?( build.version ) : false
end

.active_versionObject



23
24
25
# File 'lib/fvm.rb', line 23

def self.active_version
  @@active_version ||= find_active_version
end

.active_version?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/fvm.rb', line 19

def self.active_version?
  active_version.nil? == false
end