Class: Fortitude::Tags::TagsModule

Inherits:
Module
  • Object
show all
Defined in:
lib/fortitude/tags/tags_module.rb

Instance Method Summary collapse

Constructor Details

#initialize(widget_class) ⇒ TagsModule

Returns a new instance of TagsModule.



6
7
8
9
10
11
12
# File 'lib/fortitude/tags/tags_module.rb', line 6

def initialize(widget_class)
  include Fortitude::Tags::TagSupport

  @widget_class = widget_class
  @widget_class.send(:const_set, :DefinedFortitudeTags, self)
  @widget_class.send(:include, self)
end