Class: Herb::ActionView::HelperEntry
- Inherits:
-
Object
- Object
- Herb::ActionView::HelperEntry
- Defined in:
- lib/herb/action_view/helper_registry.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
readonly
: Array.
-
#arguments ⇒ Object
readonly
: Array.
-
#description ⇒ Object
readonly
: String.
-
#detect_style ⇒ Object
readonly
: Symbol.
-
#documentation_url ⇒ Object
readonly
: String.
-
#gem ⇒ Object
readonly
: String.
-
#implicit_attribute ⇒ Object
readonly
: HelperImplicitAttribute?.
-
#name ⇒ Object
readonly
: String.
-
#options ⇒ Object
readonly
: Array.
-
#output ⇒ Object
readonly
: Symbol.
-
#signature ⇒ Object
readonly
: String.
-
#source ⇒ Object
readonly
: String.
-
#special_behaviors ⇒ Object
readonly
: Array.
-
#tag_name ⇒ Object
readonly
: String?.
-
#type ⇒ Object
readonly
: Symbol.
-
#visibility ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#call_name_detect? ⇒ Boolean
: () -> bool.
-
#implicit_attribute? ⇒ Boolean
: () -> bool.
-
#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
constructor
: (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.
-
#preferred_for_tag? ⇒ Boolean
: () -> bool.
-
#receiver_call_detect? ⇒ Boolean
: () -> bool.
-
#static_tag_name? ⇒ Boolean
: () -> bool.
-
#supported? ⇒ Boolean
: () -> bool.
-
#supports_block? ⇒ Boolean
: () -> bool.
-
#void? ⇒ Boolean
: () -> bool.
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 = @special_behaviors = special_behaviors @aliases = aliases end |
Instance Attribute Details
#aliases ⇒ Object (readonly)
: Array
580 581 582 |
# File 'lib/herb/action_view/helper_registry.rb', line 580 def aliases @aliases end |
#arguments ⇒ Object (readonly)
: Array
577 578 579 |
# File 'lib/herb/action_view/helper_registry.rb', line 577 def arguments @arguments end |
#description ⇒ Object (readonly)
: String
573 574 575 |
# File 'lib/herb/action_view/helper_registry.rb', line 573 def description @description end |
#detect_style ⇒ Object (readonly)
: Symbol
572 573 574 |
# File 'lib/herb/action_view/helper_registry.rb', line 572 def detect_style @detect_style end |
#documentation_url ⇒ Object (readonly)
: String
575 576 577 |
# File 'lib/herb/action_view/helper_registry.rb', line 575 def documentation_url @documentation_url end |
#gem ⇒ Object (readonly)
: String
568 569 570 |
# File 'lib/herb/action_view/helper_registry.rb', line 568 def gem @gem end |
#implicit_attribute ⇒ Object (readonly)
: HelperImplicitAttribute?
576 577 578 |
# File 'lib/herb/action_view/helper_registry.rb', line 576 def implicit_attribute @implicit_attribute end |
#name ⇒ Object (readonly)
: String
565 566 567 |
# File 'lib/herb/action_view/helper_registry.rb', line 565 def name @name end |
#options ⇒ Object (readonly)
: Array
578 579 580 |
# File 'lib/herb/action_view/helper_registry.rb', line 578 def @options end |
#output ⇒ Object (readonly)
: Symbol
569 570 571 |
# File 'lib/herb/action_view/helper_registry.rb', line 569 def output @output end |
#signature ⇒ Object (readonly)
: String
574 575 576 |
# File 'lib/herb/action_view/helper_registry.rb', line 574 def signature @signature end |
#source ⇒ Object (readonly)
: String
567 568 569 |
# File 'lib/herb/action_view/helper_registry.rb', line 567 def source @source end |
#special_behaviors ⇒ Object (readonly)
: Array
579 580 581 |
# File 'lib/herb/action_view/helper_registry.rb', line 579 def special_behaviors @special_behaviors end |
#tag_name ⇒ Object (readonly)
: String?
571 572 573 |
# File 'lib/herb/action_view/helper_registry.rb', line 571 def tag_name @tag_name end |
#type ⇒ Object (readonly)
: Symbol
566 567 568 |
# File 'lib/herb/action_view/helper_registry.rb', line 566 def type @type end |
#visibility ⇒ Object (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
629 |
# File 'lib/herb/action_view/helper_registry.rb', line 629 def call_name_detect? = @detect_style == :call_name |
#implicit_attribute? ⇒ Boolean
: () -> bool
626 |
# File 'lib/herb/action_view/helper_registry.rb', line 626 def implicit_attribute? = !@implicit_attribute.nil? |
#preferred_for_tag? ⇒ Boolean
: () -> bool
617 |
# File 'lib/herb/action_view/helper_registry.rb', line 617 def preferred_for_tag? = @preferred_for_tag |
#receiver_call_detect? ⇒ Boolean
: () -> bool
632 |
# File 'lib/herb/action_view/helper_registry.rb', line 632 def receiver_call_detect? = @detect_style == :receiver_call |
#static_tag_name? ⇒ Boolean
: () -> bool
623 |
# File 'lib/herb/action_view/helper_registry.rb', line 623 def static_tag_name? = !@tag_name.nil? |
#supported? ⇒ Boolean
: () -> bool
620 |
# File 'lib/herb/action_view/helper_registry.rb', line 620 def supported? = @supported |
#supports_block? ⇒ Boolean
: () -> bool
614 |
# File 'lib/herb/action_view/helper_registry.rb', line 614 def supports_block? = @supports_block |
#void? ⇒ Boolean
: () -> bool
611 |
# File 'lib/herb/action_view/helper_registry.rb', line 611 def void? = @is_void |