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.



85
86
87
88
89
90
# File 'lib/easyconf-rails.rb', line 85

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.



83
84
85
# File 'lib/easyconf-rails.rb', line 83

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



81
82
83
# File 'lib/easyconf-rails.rb', line 81

def line
  @line
end