class RubyDanfe::Options
Constants
- DEFAULTOPTIONS
Public Class Methods
new(new_options={})
click to toggle source
Calls superclass method
# File lib/ruby_danfe/options.rb, line 9 def initialize(new_options={}) options = DEFAULTOPTIONS.merge(config_yaml_load) super options.merge(new_options) end
Private Instance Methods
config_yaml_load()
click to toggle source
# File lib/ruby_danfe/options.rb, line 19 def config_yaml_load @file_read = YAML.load(file) @file_read ? (@file_read["ruby_danfe"]||{})["options"] : {} end
file()
click to toggle source
# File lib/ruby_danfe/options.rb, line 15 def file File.exists?("config/ruby_danfe.yml") ? File.open("config/ruby_danfe.yml").read : "" end