Class: Vedeu::Coercers::Lines Private

Inherits:
Coercer
  • Object
show all
Defined in:
lib/vedeu/coercers/lines.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Provides the mechanism to convert a value into a Views::Lines.

Instance Attribute Summary

Attributes inherited from Coercer

#attributes, #value

Instance Method Summary collapse

Methods inherited from Coercer

#child_klass, coerce, #coerced?, #incoercible!, #initialize

Methods included from Vedeu::Common

#absent?, #array?, #boolean, #boolean?, #empty_value?, #escape?, #falsy?, #hash?, #line_model?, #numeric?, #positionable?, #present?, #snake_case, #stream_model?, #string?, #symbol?, #truthy?, #view_model?

Constructor Details

This class inherits a constructor from Vedeu::Coercers::Coercer

Instance Method Details

#coerceVedeu::Views::Lines

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

Raises:

  • (Vedeu::Error::Fatal)

    When Vedeu does not understand that which the client application is attempting to achieve.



16
17
18
19
20
21
22
23
24
# File 'lib/vedeu/coercers/lines.rb', line 16

def coerce
  if coerced?
    value

  else
    incoercible!

  end
end

#klassClass (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Class)


29
30
31
# File 'lib/vedeu/coercers/lines.rb', line 29

def klass
  Vedeu::Views::Lines
end