Class: XRT::Statement::TagPair
- Inherits:
-
Block
- Object
- XRT::Statement
- Block
- XRT::Statement::TagPair
- Defined in:
- lib/xrt/statement.rb
Instance Method Summary collapse
-
#initialize(tag) ⇒ TagPair
constructor
A new instance of TagPair.
Methods inherited from Block
#<<, #children, #closed?, #content, #inspect
Methods inherited from XRT::Statement
#==, #auto_indent, #children, #contains_directive?, #content, #depth, #find_block_texts, #find_blocks, #find_blocks_with_directive, #include?, #inspect, #replace_child, #statements, #to_s
Constructor Details
#initialize(tag) ⇒ TagPair
Returns a new instance of TagPair.
216 217 218 |
# File 'lib/xrt/statement.rb', line 216 def initialize tag @children = [ tag ] end |