Skip to content

Instantly share code, notes, and snippets.

@Groogy
Created July 17, 2017 21:56
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 Groogy/1cb09ce674a1428f770f3d07a3abf320 to your computer and use it in GitHub Desktop.
Save Groogy/1cb09ce674a1428f770f3d07a3abf320 to your computer and use it in GitHub Desktop.
module Boleite
abstract struct Configuration
end
abstract class Application
getter :configuration
@configuration : Configuration
def initialize()
@configuration = create_configuration
p @configuration #=> AppConfiguration(@foobar="Hello World!")
end
abstract def create_configuration : Configuration
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment