Skip to content

Instantly share code, notes, and snippets.

@shard-test
Last active December 24, 2015 20:39
Show Gist options
  • Save shard-test/6858906 to your computer and use it in GitHub Desktop.
Save shard-test/6858906 to your computer and use it in GitHub Desktop.
Shard: multiple files sample
# This is another additional file
class BarClass < Struct.new(:baz, :quux)
end
# This is an additional file
class FooClass < Struct.new(:foo, :bar)
end
# This is the main shard file
require_shard_file 'foo'
def hello_world
"Hello, from multiple file sample shard!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment