Module Footnotes::Notes::ComponentsNote::ClassMethods
In: lib/rails-footnotes/notes/components_note.rb

Methods

title   to_sym  

Public Instance methods

[Source]

# File lib/rails-footnotes/notes/components_note.rb, line 18
        def title
          @note_title ||= self.name.match(/^Footnotes::Notes::(\w+)ComponentNote$/)[1]
        end

[Source]

# File lib/rails-footnotes/notes/components_note.rb, line 14
        def to_sym
          @note_sym ||= "#{self.title.underscore}_component_#{(rand*1000).to_i}".to_sym
        end

[Validate]