Class: Lang
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#mistakes ⇒ Object
readonly
Returns the value of attribute mistakes.
Instance Method Summary collapse
-
#initialize(code = "en") ⇒ Lang
constructor
A new instance of Lang.
- #lang ⇒ Object
Methods included from TextActions
#build_text_from_filtered, #count_words, #do_mistake_to, #hide_text, #text1, #text2, #text3, #text4, #text5, #text6, #text7, #text_filter_connectors, #text_for, #text_with_connectors, #text_without_connectors
Constructor Details
#initialize(code = "en") ⇒ Lang
Returns a new instance of Lang.
12 13 14 15 |
# File 'lib/asker/lang/lang.rb', line 12 def initialize(code = "en") @code = code.to_s load_files end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/asker/lang/lang.rb', line 9 def code @code end |
#mistakes ⇒ Object (readonly)
Returns the value of attribute mistakes.
10 11 12 |
# File 'lib/asker/lang/lang.rb', line 10 def mistakes @mistakes end |
Instance Method Details
#lang ⇒ Object
17 18 19 |
# File 'lib/asker/lang/lang.rb', line 17 def lang @code end |