Class: Rubipara::AA

Inherits:
Object
  • Object
show all
Defined in:
lib/rubipara/aa.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_name, word: nil, max_length: 20) ⇒ AA

Returns a new instance of AA.



6
7
8
9
10
# File 'lib/rubipara/aa.rb', line 6

def initialize(file_name, word: nil, max_length: 20)
  @aa_lines = get_aa_lines(file_name.to_s)
  @word = word
  @max_length = max_length
end

Instance Attribute Details

#aa_linesObject (readonly)

Returns the value of attribute aa_lines.



4
5
6
# File 'lib/rubipara/aa.rb', line 4

def aa_lines
  @aa_lines
end

#max_lengthObject (readonly)

Returns the value of attribute max_length.



4
5
6
# File 'lib/rubipara/aa.rb', line 4

def max_length
  @max_length
end

#wordObject (readonly)

Returns the value of attribute word.



4
5
6
# File 'lib/rubipara/aa.rb', line 4

def word
  @word
end