Skip to content

Instantly share code, notes, and snippets.

@danielbdias
Last active July 31, 2019 03:17
Show Gist options
  • Select an option

  • Save danielbdias/604d7e12dd160da8cd0a3a8a65e6e5b5 to your computer and use it in GitHub Desktop.

Select an option

Save danielbdias/604d7e12dd160da8cd0a3a8a65e6e5b5 to your computer and use it in GitHub Desktop.

Revisions

  1. danielbdias revised this gist Jul 31, 2019. No changes.
  2. danielbdias revised this gist Jul 31, 2019. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions ddd-first-iteration.rb
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,6 @@ def ligar_com(treco)
    # ...
    Coisa.new
    end

    # ...
    end

    @@ -16,7 +15,6 @@ class Coisa
    end

    class Program

    def execute
    coiso = Coiso.new
    treco = Treco.new
    @@ -25,5 +23,4 @@ def execute

    coisa
    end

    end
    end
  3. danielbdias renamed this gist Jul 31, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. danielbdias created this gist Jul 31, 2019.
    29 changes: 29 additions & 0 deletions first-iteration.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    class Coiso
    def ligar_com(treco)
    # ...
    Coisa.new
    end

    # ...
    end

    class Treco
    # ...
    end

    class Coisa
    # ...
    end

    class Program

    def execute
    coiso = Coiso.new
    treco = Treco.new

    coisa = coiso.ligar_com(treco)

    coisa
    end

    end