Class: BlkID::Dev
- Inherits:
-
Object
- Object
- BlkID::Dev
- Defined in:
- lib/rblkid/dev.rb
Instance Method Summary collapse
- #devname ⇒ Object
-
#initialize(struct) ⇒ Dev
constructor
A new instance of Dev.
- #tag?(type, value) ⇒ Boolean (also: #has_tag?)
- #tags ⇒ Object
- #to_ffi ⇒ Object
Constructor Details
#initialize(struct) ⇒ Dev
Returns a new instance of Dev.
25 26 27 |
# File 'lib/rblkid/dev.rb', line 25 def initialize (struct) @struct = struct end |
Instance Method Details
#devname ⇒ Object
29 30 31 |
# File 'lib/rblkid/dev.rb', line 29 def devname BlkID::C.blkid_dev_devname(@struct) end |
#tag?(type, value) ⇒ Boolean Also known as: has_tag?
33 34 35 |
# File 'lib/rblkid/dev.rb', line 33 def tag? (type, value) BlkID::C.blkid_dev_has_tag(@struct, type, value) end |
#tags ⇒ Object
38 39 40 |
# File 'lib/rblkid/dev.rb', line 38 def TagIterate.new(self) end |
#to_ffi ⇒ Object
42 43 44 |
# File 'lib/rblkid/dev.rb', line 42 def to_ffi @struct end |