Exception: MotionSpec::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/motion-spec/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count_as, message) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/motion-spec/error.rb', line 6

def initialize(count_as, message)
  @count_as = count_as
  super message
end

Instance Attribute Details

#count_asObject

Returns the value of attribute count_as.



4
5
6
# File 'lib/motion-spec/error.rb', line 4

def count_as
  @count_as
end