Module: Servies
- Defined in:
- lib/servies.rb,
lib/servies/engine.rb,
lib/servies/backend.rb,
lib/servies/version.rb,
lib/servies/operation.rb,
lib/servies/validations.rb,
lib/servies/access_denied.rb,
lib/servies/operation_finder.rb,
lib/servies/validation_error.rb,
lib/generators/servies/install_generator.rb
Defined Under Namespace
Modules: Operation, Validations Classes: AccessDenied, Backend, Engine, InstallGenerator, OperationFinder, ValidationError
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
-
.get_class_by_string(classname) ⇒ Object
this method is also available as constantize in Rails, but we want to be able to write classes and/or tests without Rails.
- .string_to_classname(string) ⇒ Object
Class Method Details
.get_class_by_string(classname) ⇒ Object
this method is also available as constantize in Rails, but we want to be able to write classes and/or tests without Rails
4 5 6 |
# File 'lib/servies.rb', line 4 def self.get_class_by_string classname classname.constantize end |
.string_to_classname(string) ⇒ Object
8 9 10 |
# File 'lib/servies.rb', line 8 def self.string_to_classname string string.to_s.camelize end |