Class: Hirb::HashStruct
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Hirb::HashStruct
- Defined in:
- lib/hirb/hash_struct.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.block_to_hash(block = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/hirb/hash_struct.rb', line 4 def self.block_to_hash(block=nil) config = self.new if block block.call(config) config.to_hash else {} end end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 |
# File 'lib/hirb/hash_struct.rb', line 14 def to_hash @table end |