Method: CodeMiner::Expression.not_implemented
- Defined in:
- lib/codeminer/expressions/expression.rb
.not_implemented(*attrs) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/codeminer/expressions/expression.rb', line 9 def self.not_implemented(*attrs) attrs.each do |attr| define_method attr do |*| raise NotImplementedError, "Need to define #{attr} on #{self.class}" end end end |