Class: Crawdad::Tokens::Penalty

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/crawdad/ffi/tokens.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



60
61
62
63
# File 'lib/crawdad/ffi/tokens.rb', line 60

def inspect
  "(penalty %.2f %.2f#{" F" if self[:flagged] == 1})" %
    [self[:penalty], self[:width]]
end