Module: DataBindings::GemRequirement
- Included in:
- Adapters::BSON, Adapters::BSON::Convert, Adapters::JSON, Adapters::JSON::Convert, Adapters::TNetstring, Adapters::TNetstring::Convert, Adapters::XML, Adapters::XML::Convert, Readers, Writers
- Defined in:
- lib/data_bindings/util.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.gentle_require_gem(gem) ⇒ Object
69 70 71 72 73 74 75 76 |
# File 'lib/data_bindings/util.rb', line 69 def self.gentle_require_gem(gem) begin require gem rescue LoadError warn "The `#{gem}' gem must be loadable" exit 1 end end |
.included(o) ⇒ Object
48 49 50 |
# File 'lib/data_bindings/util.rb', line 48 def self.included(o) o.extend ClassMethods end |