Class: Polytrix::Dash
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- Polytrix::Dash
- Includes:
- Hashie::Extensions::Coercion
- Defined in:
- lib/polytrix/core/hashie.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Dash
constructor
A new instance of Dash.
Constructor Details
#initialize(hash = {}) ⇒ Dash
Returns a new instance of Dash.
9 10 11 12 |
# File 'lib/polytrix/core/hashie.rb', line 9 def initialize(hash = {}) mash = Hashie::Mash.new(hash) super mash.to_hash(symbolize_keys: true) end |