Class: Tongo::Context

Inherits:
BasicObject
Defined in:
lib/tongo/context.rb

Class Method Summary collapse

Class Method Details

.tag(name, &block) ⇒ Object



3
4
5
6
7
# File 'lib/tongo/context.rb', line 3

def self.tag(name, &block)
  define_method name do |*args|
    block.call(*args)
  end
end