Class: Amakanize::AuthorNames

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(raw) ⇒ AuthorNames

Returns a new instance of AuthorNames.

Parameters:

  • raw (String)


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)
  author_names.each(&block)
end