Class: RpgLib::RollDescriptor

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

Overview

RollDescriptor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(match) ⇒ RollDescriptor

Returns a new instance of RollDescriptor.



25
26
27
28
29
# File 'lib/rpg_lib/roll_descriptor.rb', line 25

def initialize(match)
  initialize_die(match)
  initialize_count(match)
  initialize_dropped_dice(match)
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



23
24
25
# File 'lib/rpg_lib/roll_descriptor.rb', line 23

def count
  @count
end

#dieObject (readonly)

Returns the value of attribute die.



23
24
25
# File 'lib/rpg_lib/roll_descriptor.rb', line 23

def die
  @die
end

#drop_highestObject (readonly)

Returns the value of attribute drop_highest.



23
24
25
# File 'lib/rpg_lib/roll_descriptor.rb', line 23

def drop_highest
  @drop_highest
end

#drop_lowestObject (readonly)

Returns the value of attribute drop_lowest.



23
24
25
# File 'lib/rpg_lib/roll_descriptor.rb', line 23

def drop_lowest
  @drop_lowest
end