Class: XRT::Statement::TagPair

Inherits:
Block show all
Defined in:
lib/xrt/statement.rb

Instance Method Summary collapse

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