Class: RAPI::Enum

Inherits:
Object
  • Object
show all
Defined in:
lib/rapi.rb

Direct Known Subclasses

FileAttributes

Instance Method Summary collapse

Constructor Details

#initialize(attrs = 0) ⇒ Enum

Returns a new instance of Enum.



338
339
340
# File 'lib/rapi.rb', line 338

def initialize(attrs = 0)
  @attrs = attrs.to_i
end

Instance Method Details

#to_iObject



342
343
344
# File 'lib/rapi.rb', line 342

def to_i
  @attrs
end