Class: Herb::ActionView::HelperImplicitAttribute

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, source, source_with_block, wrapper, skip_wrapping_for) ⇒ HelperImplicitAttribute

: (String, String, String?, String, Array) -> void



555
556
557
558
559
560
561
# File 'lib/herb/action_view/helper_registry.rb', line 555

def initialize(name, source, source_with_block, wrapper, skip_wrapping_for)
  @name = name
  @source = source
  @source_with_block = source_with_block
  @wrapper = wrapper
  @skip_wrapping_for = skip_wrapping_for
end

Instance Attribute Details

#nameObject (readonly)

: String



548
549
550
# File 'lib/herb/action_view/helper_registry.rb', line 548

def name
  @name
end

#skip_wrapping_forObject (readonly)

: Array



552
553
554
# File 'lib/herb/action_view/helper_registry.rb', line 552

def skip_wrapping_for
  @skip_wrapping_for
end

#sourceObject (readonly)

: String



549
550
551
# File 'lib/herb/action_view/helper_registry.rb', line 549

def source
  @source
end

#source_with_blockObject (readonly)

: String?



550
551
552
# File 'lib/herb/action_view/helper_registry.rb', line 550

def source_with_block
  @source_with_block
end

#wrapperObject (readonly)

: String



551
552
553
# File 'lib/herb/action_view/helper_registry.rb', line 551

def wrapper
  @wrapper
end