Class: DiceBag::ConfigFile

Inherits:
Object
  • Object
show all
Includes:
DiceBagFile
Defined in:
lib/dice_bag/config_file.rb

Instance Attribute Summary

Attributes included from DiceBagFile

#file, #filename

Instance Method Summary collapse

Methods included from DiceBagFile

#assert_existence, #should_write?, #write

Constructor Details

#initialize(name) ⇒ ConfigFile

Returns a new instance of ConfigFile.



9
10
11
12
# File 'lib/dice_bag/config_file.rb', line 9

def initialize(name)
  @filename = name.gsub('.local', '').gsub('.erb', '').gsub('.template','')
  @file = @filename
end