Class: Herb::ActionView::HelperArgument
- Inherits:
-
Object
- Object
- Herb::ActionView::HelperArgument
- Defined in:
- lib/herb/action_view/helper_registry.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
: String?.
-
#description ⇒ Object
readonly
: String.
-
#name ⇒ Object
readonly
: String.
-
#position ⇒ Object
readonly
: Integer.
-
#type ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#initialize(name, position, type, optional, default, splat, description) ⇒ HelperArgument
constructor
: (String, Integer, String, bool, String?, bool, String) -> void.
-
#optional? ⇒ Boolean
: () -> bool.
-
#splat? ⇒ Boolean
: () -> bool.
Constructor Details
#initialize(name, position, type, optional, default, splat, description) ⇒ HelperArgument
: (String, Integer, String, bool, String?, bool, String) -> void
509 510 511 512 513 514 515 516 517 |
# File 'lib/herb/action_view/helper_registry.rb', line 509 def initialize(name, position, type, optional, default, splat, description) @name = name @position = position @type = type @optional = optional @default = default @splat = splat @description = description end |
Instance Attribute Details
#default ⇒ Object (readonly)
: String?
505 506 507 |
# File 'lib/herb/action_view/helper_registry.rb', line 505 def default @default end |
#description ⇒ Object (readonly)
: String
506 507 508 |
# File 'lib/herb/action_view/helper_registry.rb', line 506 def description @description end |
#name ⇒ Object (readonly)
: String
502 503 504 |
# File 'lib/herb/action_view/helper_registry.rb', line 502 def name @name end |
#position ⇒ Object (readonly)
: Integer
503 504 505 |
# File 'lib/herb/action_view/helper_registry.rb', line 503 def position @position end |
#type ⇒ Object (readonly)
: String
504 505 506 |
# File 'lib/herb/action_view/helper_registry.rb', line 504 def type @type end |
Instance Method Details
#optional? ⇒ Boolean
: () -> bool
520 |
# File 'lib/herb/action_view/helper_registry.rb', line 520 def optional? = @optional |
#splat? ⇒ Boolean
: () -> bool
523 |
# File 'lib/herb/action_view/helper_registry.rb', line 523 def splat? = @splat |