class DtkCommon::DSL::ErrorUsage::DSLParsing

Public Class Methods

new(base_error_msg,file_path_or_opts=nil) click to toggle source
Calls superclass method
# File lib/dsl/file_parser.rb, line 214
def initialize(base_error_msg,file_path_or_opts=nil)
  file_path,opts = file_path_and_opts(file_path_or_opts)
  super(local_method_err_msg(base_error_msg,file_path),opts)
end

Private Instance Methods

file_path_and_opts(file_path_or_opts) click to toggle source
# File lib/dsl/file_parser.rb, line 224
def file_path_and_opts(file_path_or_opts)
  file_path = nil
  opts = Hash.new
  if file_path_or_opts.kind_of?(Hash)
    opts = file_path_or_opts
  else
    file_path = file_path_or_opts
  end
  [file_path,opts]
end
local_method_err_msg(base_error_msg,file_path=nil) click to toggle source
# File lib/dsl/file_parser.rb, line 219
def local_method_err_msg(base_error_msg,file_path=nil)
  file_ref = (file_path && " (in file: #{file_path})")
  "#{base_error_msg}#{file_ref}"
end