Class: ConfigType::Ruby

Inherits:
Object
  • Object
show all
Defined in:
lib/config_file/config_type.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extensionsObject



24
25
26
# File 'lib/config_file/config_type.rb', line 24

def self.extensions
  [".rb"]
end

Instance Method Details

#read(file_name) ⇒ Object



28
29
30
31
32
# File 'lib/config_file/config_type.rb', line 28

def read file_name
  content = File.read(file_name)

  MetaMethods::Core.instance.block_to_hash(content)
end