Module: Rewrite::ByExample

Defined in:
lib/rewrite/by_example.rb,
lib/rewrite/by_example/bind.rb,
lib/rewrite/by_example/sequence.rb,
lib/rewrite/by_example/returning.rb,
lib/rewrite/by_example/any_entity.rb,
lib/rewrite/by_example/length_one.rb,
lib/rewrite/by_example/nil_entity.rb,
lib/rewrite/by_example/unhygienic.rb,
lib/rewrite/by_example/composition.rb,
lib/rewrite/by_example/sexp_entity.rb,
lib/rewrite/by_example/bind_sequence.rb,
lib/rewrite/by_example/symbol_entity.rb,
lib/rewrite/by_example/entity_matcher.rb,
lib/rewrite/by_example/literal_entity.rb,
lib/rewrite/by_example/object_to_matcher.rb,
lib/rewrite/by_example/union_of_entities_sequence.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Returning Classes: AnyEntity, Bind, BindSequence, Composition, EntityMatcher, LengthOne, LiteralEntity, NilEntity, ObjectToMatcher, Sequence, SexpEntity, SymbolEntity, Unhygienic, UnionOfEntitiesSequence

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



33
34
35
36
# File 'lib/rewrite/by_example.rb', line 33

def self.included(receiver)
  receiver.extend         ClassMethods
  receiver.send :include, InstanceMethods
end