Module: Arspy

Defined in:
lib/arspy.rb,
lib/arspy/operators.rb,
lib/arspy/delegators.rb,
lib/arspy/class_extensions.rb,
lib/arspy/delegators/factory.rb,
lib/arspy/operators/selector.rb,
lib/arspy/operators/interpreter.rb,
lib/arspy/operators/selector/base.rb,
lib/arspy/operators/attribute_test.rb,
lib/arspy/delegators/null_extensions.rb,
lib/arspy/operators/interpreter/base.rb,
lib/arspy/delegators/array_extensions.rb,
lib/arspy/operators/attribute_test/base.rb,
lib/arspy/operators/selector/hash_selector.rb,
lib/arspy/operators/selector/range_selector.rb,
lib/arspy/operators/selector/string_selector.rb,
lib/arspy/delegators/active_record_extensions.rb,
lib/arspy/operators/attribute_test/float_test.rb,
lib/arspy/operators/attribute_test/range_test.rb,
lib/arspy/operators/selector/integer_selector.rb,
lib/arspy/operators/attribute_test/regexp_test.rb,
lib/arspy/operators/attribute_test/string_test.rb,
lib/arspy/operators/attribute_test/integer_test.rb,
lib/arspy/operators/selector/attribute_selector.rb,
lib/arspy/operators/interpreter/null_interpreter.rb,
lib/arspy/operators/selector/unsupported_selector.rb,
lib/arspy/operators/interpreter/method_interpreter.rb,
lib/arspy/operators/attribute_test/unsupported_test.rb,
lib/arspy/operators/interpreter/attribute_interpreter.rb,
lib/arspy/delegators/association_collection_extensions.rb,
lib/arspy/operators/interpreter/association_interpreter.rb,
lib/arspy/operators/interpreter/abbreviated_attribute_interpreter.rb,
lib/arspy/operators/interpreter/abbreviated_association_interpreter.rb

Defined Under Namespace

Modules: ClassExtensions, Delegators, Operators

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



14
15
16
17
18
# File 'lib/arspy.rb', line 14

def self.included(base)
  base.send :include, Delegators::Factory.module_for(base)
  extension = "Arspy::ClassExtensions::#{base.name}".constantize rescue nil
  base.extend(extension) if extension
end