--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: (aliased_target, punctuation)
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Encapsulates the common pattern of:"
- !ruby/struct:SM::Flow::VERB 
  body: "  alias_method :foo_without_feature, :foo\n  alias_method :foo, :foo_with_feature\n"
- !ruby/struct:SM::Flow::P 
  body: "With this, you simply do:"
- !ruby/struct:SM::Flow::VERB 
  body: "  alias_method_chain :foo, :feature\n"
- !ruby/struct:SM::Flow::P 
  body: And both aliases are set up for you.
- !ruby/struct:SM::Flow::P 
  body: "Query and bang methods (foo?, foo!) keep the same punctuation:"
- !ruby/struct:SM::Flow::VERB 
  body: "  alias_method_chain :foo?, :feature\n"
- !ruby/struct:SM::Flow::P 
  body: is equivalent to
- !ruby/struct:SM::Flow::VERB 
  body: "  alias_method :foo_without_feature?, :foo?\n  alias_method :foo?, :foo_with_feature?\n"
- !ruby/struct:SM::Flow::P 
  body: so you can safely chain foo, foo?, and foo! with the same feature.
full_name: ActiveSupport::CoreExtensions::Module#alias_method_chain
is_singleton: false
name: alias_method_chain
params: (target, feature) {|aliased_target, punctuation| ...}
visibility: public
