class ConfigType::Ruby

Public Class Methods

extensions() click to toggle source
# File lib/config_file/config_type.rb, line 24
def self.extensions
  [".rb"]
end

Public Instance Methods

read(file_name) click to toggle source
# 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