Class: Validation

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

Constant Summary collapse

@@supported_languages =
[
	'C', 
	'CPP', 
	'CPP11', 
	'CLOJURE', 
	'CSHARP', 
	'JAVA', 
	'JAVASCRIPT', 
	'HASKELL', 
	'PERL', 
	'PHP', 
	'PYTHON', 
	'RUBY'
]

Class Method Summary collapse

Class Method Details

.on_language(lang) ⇒ Object



22
23
24
# File 'lib/hackerearth_api/validation.rb', line 22

def self.on_language(lang)
	@@supported_languages.include? lang
end

.supported_languagesObject



18
19
20
# File 'lib/hackerearth_api/validation.rb', line 18

def self.supported_languages
	@@supported_languages
end