Class: XRT::Statement::Tag
- Inherits:
-
Block
- Object
- XRT::Statement
- Block
- XRT::Statement::Tag
- Defined in:
- lib/xrt/statement.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ Tag
constructor
A new instance of Tag.
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, #inspect, #replace_child, #statements
Constructor Details
#initialize(content) ⇒ Tag
Returns a new instance of Tag.
186 187 188 189 190 |
# File 'lib/xrt/statement.rb', line 186 def initialize content @children = [] tag_start = XRT::Statement::TagStart.new content self << tag_start end |