Class: FifthedSim::Stat::DefinitionProxy
- Inherits:
-
Object
- Object
- FifthedSim::Stat::DefinitionProxy
- Defined in:
- lib/fifthed_sim/stat.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(&block) ⇒ DefinitionProxy
constructor
A new instance of DefinitionProxy.
Constructor Details
#initialize(&block) ⇒ DefinitionProxy
Returns a new instance of DefinitionProxy.
4 5 6 7 8 9 10 |
# File 'lib/fifthed_sim/stat.rb', line 4 def initialize(&block) @hash = { mod_bonus: 0, save_mod_bonus: 0 } instance_eval(&block) end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
18 19 20 |
# File 'lib/fifthed_sim/stat.rb', line 18 def hash @hash end |