Exception: Rabbit::InvalidImageSizeError
- Defined in:
- lib/rabbit/error.rb
Constant Summary
Constants included from GetText
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#prop_name ⇒ Object
readonly
Returns the value of attribute prop_name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(filename, prop_name, value) ⇒ InvalidImageSizeError
constructor
A new instance of InvalidImageSizeError.
Methods included from GetText
Constructor Details
#initialize(filename, prop_name, value) ⇒ InvalidImageSizeError
Returns a new instance of InvalidImageSizeError.
185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/rabbit/error.rb', line 185 def initialize(filename, prop_name, value) @filename = filename @prop_name = prop_name @value = value params = { :filename => filename, :prop_name => prop_name, :value => value, } super(_("invalid value of size property \"%{prop_name}\" " \ "of image \"%{filename}\": %{value}") % params) end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
184 185 186 |
# File 'lib/rabbit/error.rb', line 184 def filename @filename end |
#prop_name ⇒ Object (readonly)
Returns the value of attribute prop_name.
184 185 186 |
# File 'lib/rabbit/error.rb', line 184 def prop_name @prop_name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
184 185 186 |
# File 'lib/rabbit/error.rb', line 184 def value @value end |