class ChaosDetector::Stacker::ModInfo

Public Class Methods

new(mod_name:, mod_type: nil, mod_path: nil) click to toggle source
Calls superclass method ChaosDetector::Stacker::CompInfo::new
# File lib/chaos_detector/stacker/mod_info.rb, line 11
def initialize(mod_name:, mod_type: nil, mod_path: nil)
  super(name: mod_name, path: mod_path, info: mod_type)
end

Public Instance Methods

component_type() click to toggle source
# File lib/chaos_detector/stacker/mod_info.rb, line 15
def component_type
  :module
end
to_s() click to toggle source
# File lib/chaos_detector/stacker/mod_info.rb, line 19
def to_s
  format('(%s) %s - %s', mod_type, ChaosDetector::Utils::StrUtil.humanize_module(mod_name, sep_token: '::'), ChaosDetector::Utils::StrUtil.humanize_module(mod_path, sep_token: '/'))
end