Class: Muck::ConfigDSL::StorageDSL

Inherits:
Object
  • Object
show all
Defined in:
lib/muck/config_dsl/storage_dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ StorageDSL

Returns a new instance of StorageDSL.



5
6
7
# File 'lib/muck/config_dsl/storage_dsl.rb', line 5

def initialize(hash)
  @hash = hash
end

Instance Method Details

#keep(keep) ⇒ Object



13
14
15
# File 'lib/muck/config_dsl/storage_dsl.rb', line 13

def keep(keep)
  @hash[:keep] = keep
end

#path(path) ⇒ Object



9
10
11
# File 'lib/muck/config_dsl/storage_dsl.rb', line 9

def path(path)
  @hash[:path] = path
end