Class: ActionText::Editor::Tag
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Inherits: | Object |
| Defined in: | actiontext/lib/action_text/editor.rb |
Class Attribute Summary
- .id rw
Class Method Summary
- .new(editor_name, options = {}) ⇒ Tag constructor
Instance Attribute Summary
- #editor_name readonly
- #options readonly
Instance Method Summary
Constructor Details
.new(editor_name, options = {}) ⇒ Tag
# File 'actiontext/lib/action_text/editor.rb', line 61
def initialize(editor_name, = {}) @editor_name = editor_name @options = end
Class Attribute Details
.id (rw)
[ GitHub ]# File 'actiontext/lib/action_text/editor.rb', line 56
cattr_accessor(:id, instance_accessor: false) { 0 }
Instance Attribute Details
#editor_name (readonly)
[ GitHub ]# File 'actiontext/lib/action_text/editor.rb', line 58
attr_reader :editor_name
#options (readonly)
[ GitHub ]# File 'actiontext/lib/action_text/editor.rb', line 59
attr_reader :
Instance Method Details
#element_name
[ GitHub ]# File 'actiontext/lib/action_text/editor.rb', line 66
def element_name "#{editor_name}-editor" end
#render_in(view_context)
[ GitHub ]# File 'actiontext/lib/action_text/editor.rb', line 70
def render_in(view_context) [:class] ||= "#{editor_name}-content" view_context.content_tag(element_name, nil, ) end