Answers for "where is ruby used stack overflow"

0

stack overflow ruby

require 'forwardable'

class Node
    extend Forwardable
    delegate %w(hello) => :@helper
    
    # Takes no params.
    def initialize
        @helper = Helper.new()
    end
end

class Helper
    
    # Outputs 'hello world'
    def hello
        puts 'hello world'
    end
end
Posted by: Guest on January-04-2021

Browse Popular Code Answers by Language