Module: Cgpio

Defined in:
lib/cgpio.rb,
lib/cgpio/version.rb

Defined Under Namespace

Classes: Configuration, Gpio, RealGpio, VirtualGpio

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



10
11
12
# File 'lib/cgpio.rb', line 10

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/cgpio.rb', line 21

def self.configure
    yield configuration
end

.resetObject



17
18
19
# File 'lib/cgpio.rb', line 17

def self.reset
    @configuration = Configuration.new
end