Class: Whatlang::Lang
- Inherits:
-
Object
- Object
- Whatlang::Lang
- Defined in:
- lib/whatlang.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#eng_name ⇒ Object
readonly
Returns the value of attribute eng_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(code, name, eng_name) ⇒ Lang
constructor
A new instance of Lang.
Constructor Details
#initialize(code, name, eng_name) ⇒ Lang
Returns a new instance of Lang.
43 44 45 46 47 |
# File 'lib/whatlang.rb', line 43 def initialize(code, name, eng_name) @code = code @name = name @eng_name = eng_name end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
41 42 43 |
# File 'lib/whatlang.rb', line 41 def code @code end |
#eng_name ⇒ Object (readonly)
Returns the value of attribute eng_name.
41 42 43 |
# File 'lib/whatlang.rb', line 41 def eng_name @eng_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
41 42 43 |
# File 'lib/whatlang.rb', line 41 def name @name end |