Skip to content

Instantly share code, notes, and snippets.

@panthomakos
Created August 8, 2019 04:50
Show Gist options
  • Save panthomakos/ef5264269bcd568755a5d01182433417 to your computer and use it in GitHub Desktop.
Save panthomakos/ef5264269bcd568755a5d01182433417 to your computer and use it in GitHub Desktop.
suggest-typed and todo hang
# typed: true
class Hi
def self.meta(arg)
define_method(arg) { nil }
end
meta :a
end
gem 'sorbet'
--dir
.
--dsl-plugins
sorbet/triggers.yml
source = ARGV[5]
/meta\s*:([\w]+)$/m.match(source) do |data|
puts "def #{data[1]}; end"
end
ruby_extra_args:
- '--disable-gems'
triggers:
meta: sorbet/meta.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment