Method: Primer::Beta::Markdown#initialize
- Defined in:
- app/components/primer/beta/markdown.rb
#initialize(tag: DEFAULT_TAG, **system_arguments) ⇒ Markdown
Returns a new instance of Markdown.
15 16 17 18 19 20 21 22 23 |
# File 'app/components/primer/beta/markdown.rb', line 15 def initialize(tag: DEFAULT_TAG, **system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = fetch_or_fallback(TAG_OPTIONS, tag, DEFAULT_TAG) @system_arguments[:classes] = class_names( "markdown-body", system_arguments[:classes] ) end |