Exception: EasyConfRails::InvalidDefaults

Inherits:
EasyConfError show all
Defined in:
lib/easyconf-rails.rb

Overview

InvalidDefaults is raised when config/defaults.yml is invalid YAML.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line, column, msg = "Syntax error in config/defaults.yml at "\ "line #{line}, column #{column}") ⇒ InvalidDefaults

Returns a new instance of InvalidDefaults.



77
78
79
80
81
82
# File 'lib/easyconf-rails.rb', line 77

def initialize(line, column, msg="Syntax error in config/defaults.yml at "\
                                 "line #{line}, column #{column}")
	@line = line
	@column = column
	super(msg)
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



75
76
77
# File 'lib/easyconf-rails.rb', line 75

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



73
74
75
# File 'lib/easyconf-rails.rb', line 73

def line
  @line
end