Class: Bgem::Config::DSL
- Inherits:
-
Object
- Object
- Bgem::Config::DSL
- Defined in:
- lib/bgem.rb
Instance Method Summary collapse
- #entry(file) ⇒ Object
-
#initialize(config, code) ⇒ DSL
constructor
A new instance of DSL.
- #inside(*headers) ⇒ Object
- #output(file) ⇒ Object
Constructor Details
#initialize(config, code) ⇒ DSL
Returns a new instance of DSL.
51 52 53 54 |
# File 'lib/bgem.rb', line 51 def initialize config, code @config = config instance_eval code end |
Instance Method Details
#entry(file) ⇒ Object
56 57 58 |
# File 'lib/bgem.rb', line 56 def entry file @config.entry = file end |
#inside(*headers) ⇒ Object
64 65 66 |
# File 'lib/bgem.rb', line 64 def inside *headers @config.scope = headers end |
#output(file) ⇒ Object
60 61 62 |
# File 'lib/bgem.rb', line 60 def output file @config.output = file end |