module NxtConfig
Constants
- VERSION
Public Class Methods
load(filename_or_hash)
click to toggle source
# File lib/nxt_config.rb, line 8 def load(filename_or_hash) if filename_or_hash.respond_to?(:to_h) source_hash = filename_or_hash else source_hash = YAML.safe_load(ERB.new(File.read(filename_or_hash)).result) end Struct.new(source_hash) end
Private Instance Methods
load(filename_or_hash)
click to toggle source
# File lib/nxt_config.rb, line 8 def load(filename_or_hash) if filename_or_hash.respond_to?(:to_h) source_hash = filename_or_hash else source_hash = YAML.safe_load(ERB.new(File.read(filename_or_hash)).result) end Struct.new(source_hash) end