This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Platzi - Reto 8 Diciembre 23 | |
# @author: @israellias | |
# ruby_version: 2.5.3 | |
#regalaconocimiento | |
module Model | |
class Box < Struct.new(:name, :money, :weight) | |
end | |
class Combination < Struct.new(:boxes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder | |
# Extract from gems/actionpack-5.2.0/lib/action_dispatch/routing/polymorphic_routes.rb#HelperMethodBuilder class | |
# @param [Array] list | |
def handle_list(list) | |
record_list = list.dup | |
record = record_list.pop | |
args = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public class FirstApp { | |
private $app; | |
public function getApp(){ | |
return $this->app; | |
} |