Class: Konjak::SubFlow
- Inherits:
-
InlineElement
- Object
- Delegator
- Element
- InlineElement
- Konjak::SubFlow
- Defined in:
- lib/konjak/sub_flow.rb
Instance Method Summary collapse
-
#can_contain?(element) ⇒ Boolean
FIXME Text data, Zero, one or more of the following elements: <bpt>, <ept>, <it>, <ph>, and <hi>.
Methods inherited from Element
Constructor Details
This class inherits a constructor from Konjak::Element
Instance Method Details
#can_contain?(element) ⇒ Boolean
FIXME
Text data,
Zero, one or more of the following elements: <bpt>, <ept>, <it>, <ph>, and <hi>.
They can be in any order, except that each <bpt> element must have a subsequent corresponding <ept> element.
14 15 16 |
# File 'lib/konjak/sub_flow.rb', line 14 def can_contain?(element) [String, BeginPairedTag, EndPairedTag, IsolatedTag, Placeholder, Hilight].any? {|c| c === element } end |