Class: Rubipara::AA
- Inherits:
-
Object
- Object
- Rubipara::AA
- Defined in:
- lib/rubipara/aa.rb
Instance Attribute Summary collapse
-
#aa_lines ⇒ Object
readonly
Returns the value of attribute aa_lines.
-
#max_length ⇒ Object
readonly
Returns the value of attribute max_length.
-
#word ⇒ Object
readonly
Returns the value of attribute word.
Instance Method Summary collapse
-
#initialize(file_name, word: nil, max_length: 20) ⇒ AA
constructor
A new instance of AA.
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_lines ⇒ Object (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_length ⇒ Object (readonly)
Returns the value of attribute max_length.
4 5 6 |
# File 'lib/rubipara/aa.rb', line 4 def max_length @max_length end |
#word ⇒ Object (readonly)
Returns the value of attribute word.
4 5 6 |
# File 'lib/rubipara/aa.rb', line 4 def word @word end |