Sha256: e7087a7417ec86f5239e30ecc1e49279593a4f5bdf80d2e7b8c962c80466a841
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
require 'awesome_print' require 'eventmachine-le' # Module for RUPNP namespace # @author Sylvain Daubert module RUPNP # RUPNP version VERSION = '0.2.2' @logdev = STDERR @log_level = :info # Set log device # @param [IO,String] io_or_string io or filename to log to # @return [IO] def self.logdev=(io_or_string) if io_or_string.is_a? String @logdev = File.open(io_or_string, 'w') else @logdev = io_or_string end end # Get log device # @return [IO] io used to log def self.logdev @logdev end # Set log level # @param [:debug,:info,:warn,:error] lvl def self.log_level=(lvl) @log_level = lvl end # Get log level # @return [Symbol] def self.log_level @log_level end # Base class for RUPNP errors. class Error < StandardError; end end require_relative 'rupnp/constants' require_relative 'rupnp/tools' require_relative 'rupnp/http' require_relative 'rupnp/log_mixin' require_relative 'rupnp/event' require_relative 'rupnp/control_point' require_relative 'rupnp/cp/base' require_relative 'rupnp/cp/remote_service' require_relative 'rupnp/cp/remote_device' require_relative 'rupnp/cp/event_server' require_relative 'rupnp/cp/event_subscriber' require_relative 'rupnp/ssdp' require_relative 'rupnp/device'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rupnp-0.2.2 | lib/rupnp.rb |