Sha256: abf72a78c2c65fd2bb60e19017f73b4e94999ec8525cd48c6fad54571728504d
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 Bytes
Contents
require 'arli' require 'arduino/library' require 'yaml' module Arli class ArliFile require 'arduino/library/include' extend Forwardable def_delegators :@dependencies, *(Array.new.methods - Object.methods) DEFAULT_FILE_NAME = 'ArliFile.yml'.freeze attr_accessor :dependencies, :arli_hash, :file def initialize(file = DEFAULT_FILE_NAME) self.file = file self.arli_hash = ::YAML.load(File.read(file)) self.dependencies = arli_hash['dependencies'].map do |lib_hash| library_from(lib_hash) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arli-0.3.2 | lib/arli/arli_file.rb |
arli-0.3.1 | lib/arli/arli_file.rb |