Class: Monolens::Lens::Signature
- Inherits:
-
Object
- Object
- Monolens::Lens::Signature
- Defined in:
- lib/monolens/lens/signature.rb,
lib/monolens/lens/signature/missing.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Missing
Constant Summary collapse
Instance Method Summary collapse
- #dress_options(options, registry) ⇒ Object
-
#initialize(input, output, options) ⇒ Signature
constructor
A new instance of Signature.
Constructor Details
#initialize(input, output, options) ⇒ Signature
Returns a new instance of Signature.
8 9 10 11 12 |
# File 'lib/monolens/lens/signature.rb', line 8 def initialize(input, output, ) @input = input @output = output @options = symbolize() end |
Instance Method Details
#dress_options(options, registry) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/monolens/lens/signature.rb', line 14 def (, registry) case when ::Hash (.dup, registry) when ::Array ({lenses: }, registry) when ::String ({lenses: []}, registry) else raise Error, "Invalid options `#{.to_json}`" end end |