Class: CfYiyi
- Inherits:
-
Object
- Object
- CfYiyi
- Defined in:
- lib/cf_yiyi.rb
Overview
/****************************************************************************/ /* clase CfYiyi */ /* */ /* Clase de Control */ /****************************************************************************/ /*
Version: 1.0 en ruby 1.8.x
Fecha : 28 de Marzo 2008
Autor : Prof. Edgar Gonzalez
Email : [email protected]
*/
Instance Method Summary collapse
- #control ⇒ Object
-
#initialize ⇒ CfYiyi
constructor
A new instance of CfYiyi.
Constructor Details
#initialize ⇒ CfYiyi
Returns a new instance of CfYiyi.
13 14 |
# File 'lib/cf_yiyi.rb', line 13 def initialize() end |
Instance Method Details
#control ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cf_yiyi.rb', line 15 def control() valor = false fechatope = "20101231" fechaactual = Time.now().strftime("%Y%m%d") if fechatope<fechaactual puts "No puede usar este componente\nLlamar al Prof. Edgar Gonzalez\nAl telefono: +58 02512591601" else valor = true end return valor end |