Class: Arboretum::DocTree::Elements::GroupListener

Inherits:
ElementGroup
  • Object
show all
Defined in:
lib/arboretum/doctree.rb

Instance Attribute Summary collapse

Attributes inherited from ElementGroup

#group

Instance Method Summary collapse

Methods inherited from ElementGroup

#+, #adjacent?, #copy, #detach, #graft_first_onto, #graft_last_onto, #graft_onto, #listing, #only, #text_elements, #text_string, #to_adjacent

Constructor Details

#initialize(rule_string, exe_block) ⇒ GroupListener

Returns a new instance of GroupListener.



1457
1458
1459
1460
1461
# File 'lib/arboretum/doctree.rb', line 1457

def initialize(rule_string, exe_block)
  super()
  @rule = Arboretum::Scandent::Parser.parse_rule_string(rule_string, :PATH_LISTENER)
  @exe_block = exe_block
end

Instance Attribute Details

#exe_blockObject

Returns the value of attribute exe_block.



1455
1456
1457
# File 'lib/arboretum/doctree.rb', line 1455

def exe_block
  @exe_block
end

#ruleObject

Returns the value of attribute rule.



1455
1456
1457
# File 'lib/arboretum/doctree.rb', line 1455

def rule
  @rule
end