Module: Adify
- Defined in:
- lib/adify.rb,
lib/adify/helper.rb,
lib/adify/version.rb,
lib/generators/adify_generator.rb
Defined Under Namespace
Modules: Helper, Methods
Classes: AdifyGenerator
Constant Summary
collapse
- VERSION =
"0.3.0"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
7
8
9
|
# File 'lib/adify.rb', line 7
def self.included(base)
base.send :extend, Adify
end
|
Instance Method Details
#adify(args) ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/adify.rb', line 11
def adify(args)
if self.class == Class
include Adify::Methods
extend Adify::Methods
end
singleton = class << self; self; end
singleton.module_eval do
define_method(:adify_attributes=) do |hash|
@adify_attributes = hash
end
end
self.adify_attributes = args
end
|