class Yoda::Store::Objects::ProjectStatus::StdStatus
Remember ruby core and standard library state
Attributes
core_present[R]
@return [true, false]
std_present[R]
@return [true, false]
version[R]
@return [String]
Public Class Methods
initial_build()
click to toggle source
@return [StdStatus]
# File lib/yoda/store/objects/project_status.rb, line 100 def self.initial_build new(version: RUBY_VERSION, core_present: false, std_present: false) end
new(version:, core_present:, std_present:)
click to toggle source
@param version [String] @param core_present
[true, false] represents the flag if core's index file is present. @param std_present
[true, false] represents the flag if standard library's index file is present.
# File lib/yoda/store/objects/project_status.rb, line 107 def initialize(version:, core_present:, std_present:) @version = version @core_present = core_present @std_present = std_present end
Public Instance Methods
all_present?()
click to toggle source
@return [true, false]
# File lib/yoda/store/objects/project_status.rb, line 114 def all_present? core_present? && std_present? end
core_present?()
click to toggle source
@return [true, false]
# File lib/yoda/store/objects/project_status.rb, line 119 def core_present? core_present end
std_present?()
click to toggle source
@return [true, false]
# File lib/yoda/store/objects/project_status.rb, line 124 def std_present? std_present end
to_h()
click to toggle source
# File lib/yoda/store/objects/project_status.rb, line 128 def to_h { version: version, core_present: core_present, std_present: std_present } end