Class: Herb::ActionView::HelperEntry

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

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



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

#aliasesObject (readonly)

: Array



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

def aliases
  @aliases
end

#argumentsObject (readonly)

: Array



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

def arguments
  @arguments
end

#descriptionObject (readonly)

: String



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

def description
  @description
end

#detect_styleObject (readonly)

: Symbol



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

def detect_style
  @detect_style
end

#documentation_urlObject (readonly)

: String



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

def documentation_url
  @documentation_url
end

#gemObject (readonly)

: String



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

def gem
  @gem
end

#implicit_attributeObject (readonly)

: HelperImplicitAttribute?



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

def implicit_attribute
  @implicit_attribute
end

#nameObject (readonly)

: String



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

def name
  @name
end

#optionsObject (readonly)

: Array



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

def options
  @options
end

#outputObject (readonly)

: Symbol



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

def output
  @output
end

#signatureObject (readonly)

: String



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

def signature
  @signature
end

#sourceObject (readonly)

: String



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

def source
  @source
end

#special_behaviorsObject (readonly)

: Array



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

def special_behaviors
  @special_behaviors
end

#tag_nameObject (readonly)

: String?



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

def tag_name
  @tag_name
end

#typeObject (readonly)

: Symbol



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

def type
  @type
end

#visibilityObject (readonly)

: 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