Class: Ejectable::Device
- Inherits:
-
Object
- Object
- Ejectable::Device
- Defined in:
- lib/ejectable/device.rb
Overview
Instance Method Summary collapse
-
#initialize(name = DEFAULT_DEVICE_NAME) ⇒ Device
constructor
A new instance of Device.
- #name ⇒ String
Constructor Details
#initialize(name = DEFAULT_DEVICE_NAME) ⇒ Device
9 10 11 |
# File 'lib/ejectable/device.rb', line 9 def initialize(name=DEFAULT_DEVICE_NAME) @name = name.dup.freeze end |
Instance Method Details
#name ⇒ String
14 15 16 |
# File 'lib/ejectable/device.rb', line 14 def name @name.dup end |