Class: REHTML::Instruction
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, content) ⇒ Instruction
constructor
A new instance of Instruction.
- #is_xml_decl? ⇒ Boolean
Constructor Details
#initialize(target, content) ⇒ Instruction
Returns a new instance of Instruction.
27 28 29 30 |
# File 'lib/rehtml/elements.rb', line 27 def initialize(target,content) @target = target @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
26 27 28 |
# File 'lib/rehtml/elements.rb', line 26 def content @content end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
26 27 28 |
# File 'lib/rehtml/elements.rb', line 26 def target @target end |
Instance Method Details
#is_xml_decl? ⇒ Boolean
31 32 33 |
# File 'lib/rehtml/elements.rb', line 31 def is_xml_decl? target.upcase == 'XML' end |