Module: Croesus::Coercions

Defined in:
lib/croesus/coercions/date_definitions.rb,
lib/croesus/coerce.rb,
lib/croesus/coercions/hash_definitions.rb,
lib/croesus/coercions/time_definitions.rb,
lib/croesus/coercions/float_definitions.rb,
lib/croesus/coercions/fixnum_definitions.rb,
lib/croesus/coercions/string_definitions.rb,
lib/croesus/coercions/boolean_definitions.rb,
lib/croesus/coercions/integer_definitions.rb,
lib/croesus/coercions/date_time_definitions.rb

Overview

Author: Stefano Harding <[email protected]>

Copyright © 2014 Stefano Harding

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Classes: BooleanDefinitions, DateDefinitions, DateTimeDefinitions, FixnumDefinitions, FloatDefinitions, HashDefinitions, IntegerDefinitions, StringDefinitions, TimeDefinitions

Class Method Summary collapse

Class Method Details

.bind_to(coercer) ⇒ Object



99
100
101
102
103
104
105
106
107
108
109
# File 'lib/croesus/coerce.rb', line 99

def self.bind_to(coercer)
  Croesus::Coercions::DateDefinitions.bind_to(coercer)
  Croesus::Coercions::DateTimeDefinitions.bind_to(coercer)
  Croesus::Coercions::FixnumDefinitions.bind_to(coercer)
  Croesus::Coercions::FloatDefinitions.bind_to(coercer)
  Croesus::Coercions::IntegerDefinitions.bind_to(coercer)
  Croesus::Coercions::StringDefinitions.bind_to(coercer)
  Croesus::Coercions::TimeDefinitions.bind_to(coercer)
  Croesus::Coercions::HashDefinitions.bind_to(coercer)
  Croesus::Coercions::BooleanDefinitions.bind_to(coercer)
end