Class | Mustache::Context |
In: |
lib/mustache/context.rb
|
Parent: | Object |
Similar to Hash#fetch, finds a value by `name` in the context‘s stack. You may specify the default return value by passing a second parameter.
If no second parameter is passed (or raise_on_context_miss is set to true), will raise a ContextMiss exception on miss.
Do we know about a particular key? In other words, will calling `context[key]` give us a result that was set. Basically.
Removes the most recently added object from the context‘s internal stack.
Returns the Context.