Class: MediawikiSelenium::Raita::Formatter
- Inherits:
-
Gherkin::Formatter::JSONFormatter
- Object
- Gherkin::Formatter::JSONFormatter
- MediawikiSelenium::Raita::Formatter
- Defined in:
- lib/mediawiki_selenium/raita/formatter.rb
Instance Attribute Summary collapse
-
#feature_hashes ⇒ Object
readonly
Returns the value of attribute feature_hashes.
Instance Method Summary collapse
-
#embedding(mime_type, data) ⇒ Object
Allows for simple embeddings without base64 encoding.
-
#initialize ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
Instance Attribute Details
#feature_hashes ⇒ Object (readonly)
Returns the value of attribute feature_hashes.
6 7 8 |
# File 'lib/mediawiki_selenium/raita/formatter.rb', line 6 def feature_hashes @feature_hashes end |
Instance Method Details
#embedding(mime_type, data) ⇒ Object
Allows for simple embeddings without base64 encoding.
14 15 16 17 18 |
# File 'lib/mediawiki_selenium/raita/formatter.rb', line 14 def (mime_type, data) return unless mime_type.start_with?('text/') << { 'mime_type' => mime_type, 'data' => data } end |