Module: Sequel::Metaprogramming

Defined in:
lib/sequel/metaprogramming.rb

Instance Method Summary collapse

Instance Method Details

#inst_def(name, &blk) ⇒ Object

Defines an class method within a class



4
5
6
# File 'lib/sequel/metaprogramming.rb', line 4

def inst_def name, &blk
  instance_eval { define_method name, &blk }
end