Class: Rollenspielsache::Dice::RollResult
- Inherits:
-
FFI::AutoPointer
- Object
- FFI::AutoPointer
- Rollenspielsache::Dice::RollResult
- Defined in:
- lib/librollenspielsache/dice/roll_result.rb
Overview
The Result from a roll
Defined Under Namespace
Modules: Binding
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.release(ptr) ⇒ Object
10 11 12 |
# File 'lib/librollenspielsache/dice/roll_result.rb', line 10 def self.release(ptr) Binding.free ptr end |
Instance Method Details
#to_json(_optional = nil) ⇒ Object
14 15 16 17 |
# File 'lib/librollenspielsache/dice/roll_result.rb', line 14 def to_json(_optional = nil) wrap = Binding.to_json self wrap.to_s end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/librollenspielsache/dice/roll_result.rb', line 19 def to_s Binding.to_string self end |
#total ⇒ Object
23 24 25 |
# File 'lib/librollenspielsache/dice/roll_result.rb', line 23 def total Binding.total self end |