Class: REHTML::Instruction

Inherits:
Node
  • Object
show all
Defined in:
lib/rehtml/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



26
27
28
# File 'lib/rehtml/elements.rb', line 26

def content
  @content
end

#targetObject (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

Returns:

  • (Boolean)


31
32
33
# File 'lib/rehtml/elements.rb', line 31

def is_xml_decl?
  target.upcase == 'XML'
end