Class: LibIXM
- Inherits:
-
Object
- Object
- LibIXM
- Defined in:
- lib/libixm.rb,
lib/adapters/sfbprog.rb,
lib/interfaces/simple.rb
Defined Under Namespace
Modules: Adapters, Interfaces
Constant Summary collapse
- ADAPTER_DELEGATED_METHODS =
%w{ << send_packet }
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
- #adapter ⇒ Object
-
#initialize(options = {}) ⇒ LibIXM
constructor
A new instance of LibIXM.
Constructor Details
#initialize(options = {}) ⇒ LibIXM
Returns a new instance of LibIXM.
7 8 9 10 11 12 13 14 15 |
# File 'lib/libixm.rb', line 7 def initialize( ={} ) self.settings = { :adapter => :SFBProg, :interface => :Simple }.merge() self.extend LibIXM::Interfaces.const_get( "#{self.settings[:interface]}" ) end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
5 6 7 |
# File 'lib/libixm.rb', line 5 def settings @settings end |