Method: Primer::Beta::Text#initialize

Defined in:
app/components/primer/beta/text.rb

#initialize(tag: DEFAULT_TAG, **system_arguments) ⇒ Text

Returns a new instance of Text.

Parameters:

  • tag (Symbol) (defaults to: DEFAULT_TAG)
  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>


13
14
15
16
# File 'app/components/primer/beta/text.rb', line 13

def initialize(tag: DEFAULT_TAG, **system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:tag] = tag
end