esp-idf-lib/devtools/spec/license.rb

Mon, 03 Apr 2023 11:08:09 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 03 Apr 2023 11:08:09 +0200
changeset 11
bdc123ae7b49
parent 1
1c9894662795
permissions
-rw-r--r--

Added untested port of the Arduino APDS9930 library as component into the esp-idf-lib.

# frozen_string_literal: true

class License
  def initialize(hash)
    raise ArgumentError, "missing key `name`" unless hash.key?("name")

    @metadata = hash
  end

  def name
    @metadata["name"]
  end

  def to_s
    name
  end
end

mercurial