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



518
519
520
# File 'lib/rapi.rb', line 518

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

Instance Method Details

#to_iObject



522
523
524
# File 'lib/rapi.rb', line 522

def to_i
  @attrs
end