Sha256: d03b06e29f6130e408f5eb740d5fea7dc20d8859e4222ccd4445a11abc702294
Contents?: true
Size: 559 Bytes
Versions: 13
Compression:
Stored size: 559 Bytes
Contents
class MotionPrime::BaseElement def has_content?(content) text = computed_options[:text] || computed_options[:title] || '' !!text.match(content) end end class MotionPrime::Section def has_content?(content) self.elements.values.any? do |element| element.has_content?(content) end end end class MotionPrime::TableSection def has_content?(content) data.any? do |section| section.has_content?(content) end end end class MotionPrime::Screen def has_content?(content) main_section.has_content?(content) end end
Version data entries
13 entries across 13 versions & 1 rubygems