Skip to content

Instantly share code, notes, and snippets.

@djvita
Created April 24, 2014 14:25
Show Gist options
  • Save djvita/11256490 to your computer and use it in GitHub Desktop.
Save djvita/11256490 to your computer and use it in GitHub Desktop.
require "mscorlib"
require "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
require "System.Collections.Generic, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
require "System.Text, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
# <summary>
# its just everything instanced, nothing is implemented
# its up to you to design and crate functions.
module Softtek.Academia.CursoDotNet.Ejercicio2 #name of the DLL
#Contoller class
class Program < ProgramaDeConsola
#main, controls the process of start, process and finish
def Program.Main(args)
Program.Iniciar()
Program.Procesar()
Program.Terminar()
end
end
#console class
class ProgramaDeConsola
def ProgramaDeConsola.Iniciar()
return
end
def ProgramaDeConsola.Procesar()
return
end
def ProgramaDeConsola.Terminar()
return
end
end
#screen VIEW class
class CP_Pantalla #read the input
def LeerEntrada()
palabra = ""
return palabra
end
#show the output
def MostrarSalida(salida)
return
end
#validate input
def ValidarEntrada(entrada1)
validat = true
return validat
end
end
#Business Module MODEL
class CN_ModuloDeNegocio
#methods
def Metodo1(parametro)
a = ""
return a
end
def MetodoN(parametro)
i = 0
return i
end
end
#data module
class CD_ModuloDeDatos
#takes as a parameter and returns objects from the business entity class
def Metodo1(parametro)
negocio = EntidadDeNegocio.new()
return negocio
end
def MetodoN(parametro)
a = ""
return a
end
end
#business entity
class EntidadDeNegocio
def initialize()
end
#attibutes or properties
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment