Skip to content

Instantly share code, notes, and snippets.

@francois
Created September 30, 2024 16:43
Show Gist options
  • Save francois/56aa2f6819d517fa8779cc1efb371e97 to your computer and use it in GitHub Desktop.
Save francois/56aa2f6819d517fa8779cc1efb371e97 to your computer and use it in GitHub Desktop.
╰─○ curl -o foo.rb 'https://gist.githubusercontent.com/n-b/401518f50a553dc32edad5932872b4f0/raw/da6b298c533f9cd46fe62874646438411f452aa8/utf8.rb'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 140 100 140 0 0 873 0 --:--:-- --:--:-- --:--:-- 875
╰─○ cat foo.rb
#! ruby
module Foo_é
def self.bla
puts "bla"
end
end
module Foo_é
def self.baz
puts "baz"
end
end
Foo_é.bla
Foo_é.baz%
╰─○ ruby foo.rb
bla
foo.rb:15:in `<main>': undefined method `baz' for Foo_é:Module (NoMethodError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment