Module: Monolens::Coerce
- Extended by:
- Namespace
- Defined in:
- lib/monolens/stdlib/coerce.rb,
lib/monolens/stdlib/coerce/date.rb,
lib/monolens/stdlib/coerce/array.rb,
lib/monolens/stdlib/coerce/string.rb,
lib/monolens/stdlib/coerce/integer.rb,
lib/monolens/stdlib/coerce/date_time.rb
Defined Under Namespace
Classes: Array, Date, DateTime, Integer, String
Class Method Summary
collapse
Methods included from Namespace
factor_lens
Class Method Details
.array(options, registry) ⇒ Object
25
26
27
|
# File 'lib/monolens/stdlib/coerce.rb', line 25
def array(options, registry)
Array.new(options, registry)
end
|
.date(options, registry) ⇒ Object
5
6
7
|
# File 'lib/monolens/stdlib/coerce.rb', line 5
def date(options, registry)
Date.new(options, registry)
end
|
.datetime(options, registry) ⇒ Object
15
16
17
|
# File 'lib/monolens/stdlib/coerce.rb', line 15
def datetime(options, registry)
DateTime.new(options, registry)
end
|
.integer(options, registry) ⇒ Object
10
11
12
|
# File 'lib/monolens/stdlib/coerce.rb', line 10
def integer(options, registry)
Integer.new(options, registry)
end
|
.string(options, registry) ⇒ Object
20
21
22
|
# File 'lib/monolens/stdlib/coerce.rb', line 20
def string(options, registry)
String.new(options, registry)
end
|