module Arduino::Library::InstanceMethods

These are the DSL methods that can be imported by requiring 'arduino/library/include'

Public Instance Methods

db_default() click to toggle source
# File lib/arduino/library/instance_methods.rb, line 14
def db_default
  DefaultDatabase.instance
end
db_from(file_or_url) click to toggle source

@param [String] file_or_url — either a local file, or URL, can be gzipped

# File lib/arduino/library/instance_methods.rb, line 10
def db_from(file_or_url)
  Database.new(file_or_url)
end
library_from(file_or_url) click to toggle source

file_or_url can be a JSON file name, a .properties file name, or a URL to either of the above.

@param [String] file_or_url

# File lib/arduino/library/instance_methods.rb, line 23
def library_from(file_or_url)
  Arduino::Library::Model.from(file_or_url)
end