Class: Dryml::Parser::Element
- Inherits:
-
REXML::Element
- Object
- REXML::Element
- Dryml::Parser::Element
- Defined in:
- lib/dryml/parser/element.rb
Instance Attribute Summary collapse
-
#has_end_tag ⇒ Object
writeonly
Sets the attribute has_end_tag.
-
#source_offset ⇒ Object
Returns the value of attribute source_offset.
-
#start_tag_source ⇒ Object
Returns the value of attribute start_tag_source.
Instance Method Summary collapse
- #dryml_name ⇒ Object
- #has_end_tag? ⇒ Boolean
-
#initialize(*args) ⇒ Element
constructor
A new instance of Element.
- #parameter_tag? ⇒ Boolean
Constructor Details
Instance Attribute Details
#has_end_tag=(value) ⇒ Object (writeonly)
Sets the attribute has_end_tag
16 17 18 |
# File 'lib/dryml/parser/element.rb', line 16 def has_end_tag=(value) @has_end_tag = value end |
#source_offset ⇒ Object
Returns the value of attribute source_offset.
14 15 16 |
# File 'lib/dryml/parser/element.rb', line 14 def source_offset @source_offset end |
#start_tag_source ⇒ Object
Returns the value of attribute start_tag_source.
14 15 16 |
# File 'lib/dryml/parser/element.rb', line 14 def start_tag_source @start_tag_source end |
Instance Method Details
#dryml_name ⇒ Object
10 11 12 |
# File 'lib/dryml/parser/element.rb', line 10 def dryml_name .sub(/:.*/, "") end |
#has_end_tag? ⇒ Boolean
17 18 19 |
# File 'lib/dryml/parser/element.rb', line 17 def has_end_tag? @has_end_tag end |
#parameter_tag? ⇒ Boolean
21 22 23 |
# File 'lib/dryml/parser/element.rb', line 21 def parameter_tag? =~ /:$/ end |