Module: Raudi

Defined in:
lib/raudi.rb,
lib/raudi/info.rb,
lib/raudi/source.rb,
lib/raudi/avr/pin.rb,
lib/raudi/avr/port.rb,
lib/raudi/avr/timer.rb,
lib/raudi/processing.rb,
lib/raudi/proxy/gpio.rb,
lib/raudi/state_list.rb,
lib/raudi/proxy/timer.rb,
lib/raudi/source/block.rb,
lib/raudi/proxy/headers.rb,
lib/raudi/source/action.rb,
lib/raudi/avr/controller.rb,
lib/raudi/avr/pin_states.rb,
lib/raudi/processing/int.rb,
lib/raudi/processing/gpio.rb,
lib/raudi/source/function.rb,
lib/raudi/source/variable.rb,
lib/raudi/action_processor.rb,
lib/raudi/processing/pcint.rb,
lib/raudi/processing/timer.rb,
lib/raudi/proxy/controller.rb,
lib/raudi/source/interrupt.rb,
lib/raudi/source/controller.rb,
lib/raudi/source/bit_operations.rb,
lib/raudi/proxy/external_interrupt.rb

Defined Under Namespace

Modules: AVR, Info, Processing, Proxy, Source, StateList Classes: ActionProcessor

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.controllerObject

Returns the value of attribute controller.



12
13
14
# File 'lib/raudi.rb', line 12

def controller
  @controller
end

Class Method Details

.actionObject



22
23
24
# File 'lib/raudi.rb', line 22

def action
  @action ||= Raudi::ActionProcessor.new
end

.configure(model_name, &block) ⇒ Object



18
19
20
# File 'lib/raudi.rb', line 18

def configure(model_name, &block)
  Raudi::AVR::Controller.new(model_name, &block)
end

.process(*args) ⇒ Object



26
27
28
29
30
31
32
33
34
35
# File 'lib/raudi.rb', line 26

def process(*args)
  return unless filename = check_filename(args)
  begin
    load filename
    return write_file(filename, args)
  rescue Exception => e
    puts e.message
  end
  false
end

.versionObject



14
15
16
# File 'lib/raudi.rb', line 14

def version
  "0.0.2"
end