Class: TableScript::RollDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(match) ⇒ RollDescriptor

Returns a new instance of RollDescriptor.



24
25
26
27
28
# File 'lib/tablescript/roll_descriptor.rb', line 24

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.



22
23
24
# File 'lib/tablescript/roll_descriptor.rb', line 22

def count
  @count
end

#dieObject (readonly)

Returns the value of attribute die.



22
23
24
# File 'lib/tablescript/roll_descriptor.rb', line 22

def die
  @die
end

#drop_highestObject (readonly)

Returns the value of attribute drop_highest.



22
23
24
# File 'lib/tablescript/roll_descriptor.rb', line 22

def drop_highest
  @drop_highest
end

#drop_lowestObject (readonly)

Returns the value of attribute drop_lowest.



22
23
24
# File 'lib/tablescript/roll_descriptor.rb', line 22

def drop_lowest
  @drop_lowest
end