Last active
December 24, 2015 20:39
-
-
Save shard-test/6858906 to your computer and use it in GitHub Desktop.
Shard: multiple files sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is another additional file | |
class BarClass < Struct.new(:baz, :quux) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an additional file | |
class FooClass < Struct.new(:foo, :bar) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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