Skip to content

Instantly share code, notes, and snippets.

@jakewilkins

jakewilkins/1.rb Secret

Last active March 20, 2017 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakewilkins/92816efbae675cc3a739583a5703cef0 to your computer and use it in GitHub Desktop.
Save jakewilkins/92816efbae675cc3a739583a5703cef0 to your computer and use it in GitHub Desktop.
code for blog post
class SomethingImporter
def self.call(arg)
new(arg).call
end
def initialize(arg)
@arg = arg
end
def call
do_initial_things
do_secondary_things
finalize_some_things
validate_everything_went_well
end
private
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment