Module: ParamsReady::Helpers

Defined in:
lib/params_ready/helpers/memo.rb,
lib/params_ready/helpers/rule.rb,
lib/params_ready/helpers/key_map.rb,
lib/params_ready/helpers/options.rb,
lib/params_ready/helpers/storage.rb,
lib/params_ready/helpers/callable.rb,
lib/params_ready/helpers/usage_rule.rb,
lib/params_ready/helpers/arel_builder.rb,
lib/params_ready/helpers/find_in_hash.rb,
lib/params_ready/helpers/conditional_block.rb,
lib/params_ready/helpers/interface_definer.rb,
lib/params_ready/helpers/relation_builder_wrapper.rb,
lib/params_ready/helpers/parameter_user_class_methods.rb,
lib/params_ready/helpers/parameter_definer_class_methods.rb,
lib/params_ready/helpers/parameter_storage_class_methods.rb

Defined Under Namespace

Modules: ArelBuilder, FindInHash, ParameterDefinerClassMethods, ParameterStorageClassMethods, ParameterUserClassMethods Classes: Callable, Conditional, ConditionalBlock, InterfaceDefiner, KeyMap, Memo, Options, RelationBuilderWrapper, Rule, Storage, UsageRule

Class Method Summary collapse

Class Method Details

.Rule(input) ⇒ Object



5
6
7
8
9
10
# File 'lib/params_ready/helpers/rule.rb', line 5

def self.Rule(input)
  return input if input.nil?
  return input if input.is_a? Rule

  Rule.instance(input).freeze
end