Class: Utter::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/utter.rb

Overview

Makes sure that any class that inherits form “< Utter::Ext” must implement :initialize and :call class Ext < Mushin::Ext end

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Context

Returns a new instance of Context.



90
91
92
# File 'lib/utter.rb', line 90

def initialize &block
  instance_eval &block if block_given?
end