Module: InBedWith
- Defined in:
- lib/in_bed_with.rb,
lib/in_bed_with/base.rb,
lib/in_bed_with/gauges.rb,
lib/in_bed_with/adsense.rb,
lib/in_bed_with/railtie.rb,
lib/in_bed_with/version.rb,
lib/in_bed_with/analytics.rb
Defined Under Namespace
Modules: Helper, Rails
Classes: Adsense, Analytics, Base, Gauges
Constant Summary
collapse
- VERSION =
'0.1.0'
Class Method Summary
collapse
Class Method Details
.config {|_self| ... } ⇒ Object
16
17
18
|
# File 'lib/in_bed_with.rb', line 16
def self.config(&block)
yield self
end
|
.method_missing(method, *args, &block) ⇒ Object
20
21
22
23
|
# File 'lib/in_bed_with.rb', line 20
def self.method_missing(method, *args, &block)
str = "InBedWith::#{method.to_s.camelize}".constantize.new(*args).code
str.respond_to?(:html_safe) ? str.html_safe : str
end
|