Class: RAPI::Enum

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

Direct Known Subclasses

FileAttributes

Instance Method Summary (collapse)

Constructor Details

- (Enum) initialize(attrs = 0)



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

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

Instance Method Details

- (Object) to_i



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

def to_i
  @attrs
end