Class: UserChoices::NoOpConversion

Inherits:
Conversion show all
Defined in:
lib/user-choices/conversions.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Conversion

#does_length_check?, for, inherited, #initialize, is_abstract, record_for

Constructor Details

This class inherits a constructor from UserChoices::Conversion

Class Method Details

.described_by?(conversion_tag) ⇒ Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/user-choices/conversions.rb', line 41

def self.described_by?(conversion_tag)
  conversion_tag == :string
end

Instance Method Details

#convert(value) ⇒ Object



47
# File 'lib/user-choices/conversions.rb', line 47

def convert(value); value; end

#descriptionObject



45
# File 'lib/user-choices/conversions.rb', line 45

def description; "a string"; end

#suitable?(actual) ⇒ Boolean

Returns:

  • (Boolean)


46
# File 'lib/user-choices/conversions.rb', line 46

def suitable?(actual); true; end