Class: CfYiyi

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializeCfYiyi

Returns a new instance of CfYiyi.



13
14
# File 'lib/cf_yiyi.rb', line 13

def initialize()
end

Instance Method Details

#controlObject



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