class FifthedSim::Spell::DefinitionProxy
Public Class Methods
new(name, &block)
click to toggle source
# File lib/fifthed_sim/spell.rb, line 8 def initialize(name, &block) @hash = { name: name } instance_eval(&block) end
Public Instance Methods
attrs()
click to toggle source
# File lib/fifthed_sim/spell.rb, line 35 def attrs @hash end
save_dc(n)
click to toggle source
# File lib/fifthed_sim/spell.rb, line 27 def save_dc(n) @hash[:save_dc] = n end
save_type(n)
click to toggle source
# File lib/fifthed_sim/spell.rb, line 31 def save_type(n) @hash[:save_type] = n end