Module: Rosette::Core::PhraseToHash
- Included in:
- Phrase
- Defined in:
- lib/rosette/core/extractor/phrase/phrase_to_hash.rb
Overview
Instance Method Summary collapse
-
#to_h ⇒ Hash
Converts the attributes of a Phrase into a hash of attributes.
Instance Method Details
#to_h ⇒ Hash
Converts the attributes of a Rosette::Core::Phrase into a hash of attributes.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rosette/core/extractor/phrase/phrase_to_hash.rb', line 19 def to_h { key: key, meta_key: , file: file, commit_id: commit_id, author_name: , author_email: , line_number: line_number } end |