Class: Typhon::Head
- Inherits:
-
Object
- Object
- Typhon::Head
- Defined in:
- lib/typhon/head.rb
Overview
heads get loaded into this class on the ‘call’ method, provides convenient access to stomp, rate limiters etc
Instance Method Summary collapse
- #define_singleton_method(*args, &block) ⇒ Object
- #ratelimit(name, time = 60) ⇒ Object
- #stomp ⇒ Object
Instance Method Details
#define_singleton_method(*args, &block) ⇒ Object
5 6 7 8 9 |
# File 'lib/typhon/head.rb', line 5 def define_singleton_method(*args, &block) class << self self end.send(:define_method, *args, &block) end |