Class: Rollenspielsache::Dice::Roll
- Inherits:
-
FFI::AutoPointer
- Object
- FFI::AutoPointer
- Rollenspielsache::Dice::Roll
- Defined in:
- lib/librollenspielsache/dice/roll.rb
Overview
A single roll
Defined Under Namespace
Modules: Binding
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_str(str) ⇒ Object
15 16 17 |
# File 'lib/librollenspielsache/dice/roll.rb', line 15 def from_str(str) Binding.from_str str end |
.release(ptr) ⇒ Object
11 12 13 |
# File 'lib/librollenspielsache/dice/roll.rb', line 11 def release(ptr) Binding.free ptr end |
Instance Method Details
#base ⇒ Object
24 25 26 |
# File 'lib/librollenspielsache/dice/roll.rb', line 24 def base Binding.get_base self end |
#execute ⇒ Object
20 21 22 |
# File 'lib/librollenspielsache/dice/roll.rb', line 20 def execute Binding.execute self end |
#repeat ⇒ Object
28 29 30 |
# File 'lib/librollenspielsache/dice/roll.rb', line 28 def repeat Binding.get_repeat self end |
#to_s ⇒ Object
32 33 34 |
# File 'lib/librollenspielsache/dice/roll.rb', line 32 def to_s Binding.to_string self end |