Parent

Included Modules

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Rails::Delegate

This cop looks for delegations, that could have been created automatically with delegate method.

@example

# bad
def bar
  foo.bar
end

# good
delegate :bar, to: :foo

# bad
def foo_bar
  foo.bar
end

# good
delegate :bar, to: :foo, prefix: true

# good
private
def bar
  foo.bar
end

Constants

MSG

[Validate]

Generated with the Darkfish Rdoc Generator 2.