Class: Verifly::Applicator::Quoter

Inherits:
Verifly::Applicator show all
Defined in:
lib/verifly/applicator.rb

Overview

Quoter is used when there is no other way to apply applicatable.

Examples:

Applicator.call(true, binding_, *context) # => true

Instance Attribute Summary

Attributes inherited from Verifly::Applicator

#applicable

Instance Method Summary collapse

Methods inherited from Verifly::Applicator

#==, call, #initialize

Methods included from ClassBuilder::Mixin

#build, #build_class, #buildable_classes=

Constructor Details

This class inherits a constructor from Verifly::Applicator

Instance Method Details

#callObject

Returns applicable without changes.

Returns:

  • applicable without changes



194
195
196
# File 'lib/verifly/applicator.rb', line 194

def call(*)
  applicable
end

#sourceString

Returns quoted value’s inspect.

Returns:

  • (String)

    quoted value’s inspect



203
204
205
# File 'lib/verifly/applicator.rb', line 203

def source
  applicable.inpsect
end

#source_locationnil

No source location available

Returns:

  • (nil)


200
# File 'lib/verifly/applicator.rb', line 200

def source_location(*); end