Sha256: 92b49f8e9c7b65214d3472ee96412cf499f03dfa5a87ed3fa97075d23e5e3eb7

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

module Massa
  class Tool
    class << self
      def list
        YAML.load_file(tools_yaml_file).map { |tool| OpenStruct.new(tool) }
      end

      def tools_yaml_file
        "#{Gem::Specification.find_by_name('massa').gem_dir}/config/default_tools.yml"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
massa-0.0.9 lib/massa/tool.rb