Exception: Jade::Interop::SymbolKeys
- Defined in:
- lib/jade/interop/error.rb
Overview
Caught where the whole hash is in scope; downstream each field just reads nil and blames its own type.
Instance Method Summary collapse
-
#initialize(label, keys) ⇒ SymbolKeys
constructor
A new instance of SymbolKeys.
Constructor Details
#initialize(label, keys) ⇒ SymbolKeys
Returns a new instance of SymbolKeys.
46 47 48 49 50 51 52 53 |
# File 'lib/jade/interop/error.rb', line 46 def initialize(label, keys) super( "#{label} expects a Hash with string keys, got symbol keys " \ "(#{keys.take(4).map(&:inspect).join(', ')}). " \ "Values cross the boundary as wire data — " \ "try #{keys.first.to_s.inspect} rather than #{keys.first.inspect}." ) end |