Method: Implementation::ImplMethods#assert_implemented

Defined in:
lib/definition.rb

#assert_implemented(once = false) ⇒ Object



159
160
161
162
163
164
165
# File 'lib/definition.rb', line 159

def assert_implemented(once = false)
  nodefs = @define_table.keys - instance_methods(true).map{|m|m.to_sym}
  unless nodefs.empty?
    raise NotImplementedError, "not implemented #{nodefs.join(', ')}"
  end
  @skip_assertion ||= once
end