Class: Konjak::SubFlow

Inherits:
InlineElement show all
Defined in:
lib/konjak/sub_flow.rb

Instance Method Summary collapse

Methods inherited from Element

#__getobj__, #initialize

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.

Returns:

  • (Boolean)


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