Class: Amakanize::AuthorNames
- Inherits:
-
Object
- Object
- Amakanize::AuthorNames
- Includes:
- Enumerable
- Defined in:
- lib/amakanize/author_names.rb
Constant Summary collapse
- AUTHOR_NAME_SEPARATORS =
%w( , , 、 )
- AUTHOR_NAME_SEPARATORS_REGEXP =
::Regexp.union(AUTHOR_NAME_SEPARATORS)
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(raw) ⇒ AuthorNames
constructor
A new instance of AuthorNames.
Constructor Details
#initialize(raw) ⇒ AuthorNames
Returns a new instance of AuthorNames.
14 15 16 |
# File 'lib/amakanize/author_names.rb', line 14 def initialize(raw) @raw = raw end |
Instance Method Details
#each(&block) ⇒ Object
Note:
Implementation for Enumerable
19 20 21 |
# File 'lib/amakanize/author_names.rb', line 19 def each(&block) .each(&block) end |