Exception: Isomorphic::InvalidLens

Inherits:
LensError show all
Defined in:
lib/isomorphic/lens.rb

Overview

Raised when an Isomorphic lens is invalid.

Instance Attribute Summary collapse

Attributes inherited from IsomorphicError

#base

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, lens) ⇒ InvalidLens

Default constructor.

Parameters:



24
25
26
27
28
# File 'lib/isomorphic/lens.rb', line 24

def initialize(message = nil, lens)
  super(message)

  @lens = lens
end

Instance Attribute Details

#lensObject (readonly)

Returns the value of attribute lens.



18
19
20
# File 'lib/isomorphic/lens.rb', line 18

def lens
  @lens
end