Class: Herb::ActionView::HelperEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/herb/action_view/helper_registry.rb,
sig/herb/action_view/helper_registry.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, source:, gem:, output:, visibility:, tag_name:, is_void:, supports_block:, preferred_for_tag:, supported:, detect_style:, description:, signature:, documentation_url:, implicit_attribute:, arguments:, options:, special_behaviors:, aliases:) ⇒ HelperEntry

: (name: String, type: Symbol, source: String, gem: String, output: Symbol, visibility: String, tag_name: String?, is_void: bool, supports_block: bool, preferred_for_tag: bool, supported: bool, detect_style: Symbol, description: String, signature: String, documentation_url: String, implicit_attribute: HelperImplicitAttribute?, arguments: Array, options: Array, special_behaviors: Array, aliases: Array) -> void

Parameters:

  • name: (String)
  • type: (Symbol)
  • source: (String)
  • gem: (String)
  • output: (Symbol)
  • visibility: (String)
  • tag_name: (String, nil)
  • is_void: (Boolean)
  • supports_block: (Boolean)
  • preferred_for_tag: (Boolean)
  • supported: (Boolean)
  • detect_style: (Symbol)
  • description: (String)
  • signature: (String)
  • documentation_url: (String)
  • implicit_attribute: (HelperImplicitAttribute, nil)
  • arguments: (Array[HelperArgument])
  • options: (Array[HelperOption])
  • special_behaviors: (Array[Symbol])
  • aliases: (Array[String])


583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
# File 'lib/herb/action_view/helper_registry.rb', line 583

def initialize( # rubocop:disable Metrics/ParameterLists
  name:, type:, source:, gem:, output:, visibility:, tag_name:, is_void:, supports_block:,
  preferred_for_tag:, supported:, detect_style:, description:, signature:, documentation_url:,
  implicit_attribute:, arguments:, options:, special_behaviors:, aliases:
)
  @name = name
  @type = type
  @source = source
  @gem = gem
  @output = output
  @visibility = visibility
  @tag_name = tag_name
  @is_void = is_void
  @supports_block = supports_block
  @preferred_for_tag = preferred_for_tag
  @supported = supported
  @detect_style = detect_style
  @description = description
  @signature = signature
  @documentation_url = documentation_url
  @implicit_attribute = implicit_attribute
  @arguments = arguments
  @options = options
  @special_behaviors = special_behaviors
  @aliases = aliases
end

Instance Attribute Details

#aliasesArray[String] (readonly)

: Array

Returns:

  • (Array[String])


580
581
582
# File 'lib/herb/action_view/helper_registry.rb', line 580

def aliases
  @aliases
end

#argumentsArray[HelperArgument] (readonly)

: Array

Returns:



577
578
579
# File 'lib/herb/action_view/helper_registry.rb', line 577

def arguments
  @arguments
end

#descriptionString (readonly)

: String

Returns:

  • (String)


573
574
575
# File 'lib/herb/action_view/helper_registry.rb', line 573

def description
  @description
end

#detect_styleSymbol (readonly)

: Symbol

Returns:

  • (Symbol)


572
573
574
# File 'lib/herb/action_view/helper_registry.rb', line 572

def detect_style
  @detect_style
end

#documentation_urlString (readonly)

: String

Returns:

  • (String)


575
576
577
# File 'lib/herb/action_view/helper_registry.rb', line 575

def documentation_url
  @documentation_url
end

#gemString (readonly)

: String

Returns:

  • (String)


568
569
570
# File 'lib/herb/action_view/helper_registry.rb', line 568

def gem
  @gem
end

#implicit_attributeHelperImplicitAttribute? (readonly)

: HelperImplicitAttribute?

Returns:



576
577
578
# File 'lib/herb/action_view/helper_registry.rb', line 576

def implicit_attribute
  @implicit_attribute
end

#nameString (readonly)

: String

Returns:

  • (String)


565
566
567
# File 'lib/herb/action_view/helper_registry.rb', line 565

def name
  @name
end

#optionsArray[HelperOption] (readonly)

: Array

Returns:



578
579
580
# File 'lib/herb/action_view/helper_registry.rb', line 578

def options
  @options
end

#outputSymbol (readonly)

: Symbol

Returns:

  • (Symbol)


569
570
571
# File 'lib/herb/action_view/helper_registry.rb', line 569

def output
  @output
end

#signatureString (readonly)

: String

Returns:

  • (String)


574
575
576
# File 'lib/herb/action_view/helper_registry.rb', line 574

def signature
  @signature
end

#sourceString (readonly)

: String

Returns:

  • (String)


567
568
569
# File 'lib/herb/action_view/helper_registry.rb', line 567

def source
  @source
end

#special_behaviorsArray[Symbol] (readonly)

: Array

Returns:

  • (Array[Symbol])


579
580
581
# File 'lib/herb/action_view/helper_registry.rb', line 579

def special_behaviors
  @special_behaviors
end

#tag_nameString? (readonly)

: String?

Returns:

  • (String, nil)


571
572
573
# File 'lib/herb/action_view/helper_registry.rb', line 571

def tag_name
  @tag_name
end

#typeSymbol (readonly)

: Symbol

Returns:

  • (Symbol)


566
567
568
# File 'lib/herb/action_view/helper_registry.rb', line 566

def type
  @type
end

#visibilityString (readonly)

: String

Returns:

  • (String)


570
571
572
# File 'lib/herb/action_view/helper_registry.rb', line 570

def visibility
  @visibility
end

Instance Method Details

#call_name_detect?Boolean

: () -> bool

Returns:

  • (Boolean)


629
# File 'lib/herb/action_view/helper_registry.rb', line 629

def call_name_detect? = @detect_style == :call_name

#implicit_attribute?Boolean

: () -> bool

Returns:

  • (Boolean)


626
# File 'lib/herb/action_view/helper_registry.rb', line 626

def implicit_attribute? = !@implicit_attribute.nil?

#preferred_for_tag?Boolean

: () -> bool

Returns:

  • (Boolean)


617
# File 'lib/herb/action_view/helper_registry.rb', line 617

def preferred_for_tag? = @preferred_for_tag

#receiver_call_detect?Boolean

: () -> bool

Returns:

  • (Boolean)


632
# File 'lib/herb/action_view/helper_registry.rb', line 632

def receiver_call_detect? = @detect_style == :receiver_call

#static_tag_name?Boolean

: () -> bool

Returns:

  • (Boolean)


623
# File 'lib/herb/action_view/helper_registry.rb', line 623

def static_tag_name? = !@tag_name.nil?

#supported?Boolean

: () -> bool

Returns:

  • (Boolean)


620
# File 'lib/herb/action_view/helper_registry.rb', line 620

def supported? = @supported

#supports_block?Boolean

: () -> bool

Returns:

  • (Boolean)


614
# File 'lib/herb/action_view/helper_registry.rb', line 614

def supports_block? = @supports_block

#void?Boolean

: () -> bool

Returns:

  • (Boolean)


611
# File 'lib/herb/action_view/helper_registry.rb', line 611

def void? = @is_void