I hereby claim:
- I am taq on github.
- I am taq (https://keybase.io/taq) on keybase.
- I have a public key whose fingerprint is 840B 7492 E475 8DB6 B5DE 81D0 6611 4C70 E7F6 C0C0
To claim this, I am signing this object:
{ | |
"Version": "24.10", | |
"OEM": { | |
"Vendor": "Dell Inc.", | |
"Product": "Latitude 5440", | |
"Family": "Latitude" | |
}, | |
"BIOS": { | |
"Vendor": "Dell Inc.", | |
"Version": "1.20.2" |
From f0af0ed80173a0a3ff0ed1316bdb09ba64b518f0 Mon Sep 17 00:00:00 2001 | |
From: Eustaquio Rangel <[email protected]> | |
Date: Thu, 21 Dec 2023 16:12:23 -0300 | |
Subject: [PATCH] Construtor | |
--- | |
test.rb | 3 +++ | |
1 file changed, 3 insertions(+) | |
diff --git a/test.rb b/test.rb |
class Test | |
def initialize | |
puts 'Inicializando um teste ...' | |
end | |
end |
class Test | |
end |
require 'active_support/string_inquirer' | |
require 'benchmark' | |
# classe | |
class ClientExternalData | |
# o método com o inquirer/method_missing | |
def identifier | |
ActiveSupport::StringInquirer.new('uuid') | |
end |
class Foo | |
class << self | |
attr_reader :ivar | |
end | |
@ivar = 'Hello!' | |
end | |
class Bar < Foo | |
@ivar = 'World' | |
end |
Just insert on .gitconfig: | |
nrb = "!f() { git push -u origin $(git rev-parse --abbrev-ref HEAD):$1; }; f" | |
And then, when on a local branch and want to push to a new remote branch called, say, 'test': | |
$ git nbr test | |
Total 0 (delta 0), reused 0 (delta 0) | |
To <your remote here> | |
* [new branch] work -> test |
require "minitest/autorun" | |
require "minitest/spec" | |
require "spreadsheet" | |
describe 'spreadsheet' do | |
def self.before_all | |
@doc ||= Spreadsheet.open "spreadsheet.xls" | |
end | |
before do |
require "minitest/autorun" | |
require "minitest/spec" | |
require "spreadsheet" | |
describe 'spreadsheet' do | |
before do | |
@doc ||= Spreadsheet.open "spreadsheet.xls" | |
puts "document object id: #{@doc.object_id}" | |
end |
I hereby claim:
To claim this, I am signing this object: