Class: Device
- Inherits:
-
Object
- Object
- Device
- Defined in:
- lib/device/io.rb,
lib/device/audio.rb,
lib/device/crypto.rb,
lib/device/system.rb,
lib/device/display.rb,
lib/device/network.rb,
lib/device/printer.rb,
lib/device/runtime.rb,
lib/device/setting.rb,
lib/device/support.rb,
lib/device/version.rb,
lib/device/magnetic.rb,
lib/device/signature.rb,
lib/device/virtual_keyboard.rb,
lib/device.rb
Defined Under Namespace
Classes: Audio, Crypto, Display, IO, Magnetic, Network, Printer, Runtime, Setting, Signature, Support, System, VirtualKeyboard
Class Attribute Summary collapse
-
.adapter ⇒ Object
Returns the value of attribute adapter.
Class Method Summary collapse
- .call(*args) ⇒ Object
-
.flat_api ⇒ Class
Flat syntax/behaviour API between versions, to any application be able to execute on whole versions.
- .version ⇒ Object
Class Attribute Details
.adapter ⇒ Object
Returns the value of attribute adapter.
4 5 6 |
# File 'lib/device.rb', line 4 def adapter @adapter end |
Class Method Details
.call(*args) ⇒ Object
18 19 |
# File 'lib/device.rb', line 18 def self.call(*args) end |
.flat_api ⇒ Class
Flat syntax/behaviour API between versions, to any application be able to execute on whole versions.
10 11 12 13 14 15 16 |
# File 'lib/device.rb', line 10 def self.flat_api klass_version = Device.version.to_s.gsub(".", "") # Sample #if Device.version == "0.4.3" #const_get("VersionFlat#{klass_version}").flat Device #end end |
.version ⇒ Object
3 4 5 |
# File 'lib/device/version.rb', line 3 def self.version adapter.version end |