Class: Herb::ActionView::HelperArgument

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, 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

#defaultObject (readonly)

: String?



505
506
507
# File 'lib/herb/action_view/helper_registry.rb', line 505

def default
  @default
end

#descriptionObject (readonly)

: String



506
507
508
# File 'lib/herb/action_view/helper_registry.rb', line 506

def description
  @description
end

#nameObject (readonly)

: String



502
503
504
# File 'lib/herb/action_view/helper_registry.rb', line 502

def name
  @name
end

#positionObject (readonly)

: Integer



503
504
505
# File 'lib/herb/action_view/helper_registry.rb', line 503

def position
  @position
end

#typeObject (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

Returns:

  • (Boolean)


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

def optional? = @optional

#splat?Boolean

: () -> bool

Returns:

  • (Boolean)


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

def splat? = @splat