Class: UnarmBind::Argument

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/unarm/unarm.rb

Instance Method Summary collapse

Instance Method Details

#kindObject



344
345
346
# File 'lib/unarm/unarm.rb', line 344

def kind
  ARGUMENT_KIND[self[:kind]]
end

#valueObject



348
349
350
351
# File 'lib/unarm/unarm.rb', line 348

def value
  raise "No value for argument of kind 'none'" if kind == :none
  self[:value][kind]
end