Class: Whatlang::Lang

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



41
42
43
# File 'lib/whatlang.rb', line 41

def code
  @code
end

#eng_nameObject (readonly)

Returns the value of attribute eng_name.



41
42
43
# File 'lib/whatlang.rb', line 41

def eng_name
  @eng_name
end

#nameObject (readonly)

Returns the value of attribute name.



41
42
43
# File 'lib/whatlang.rb', line 41

def name
  @name
end