class Examples

Code here should not cause rubocop to nag

Public Instance Methods

example_for_layout_else_alignment() click to toggle source

rubocop:enable Layout/CommentIndentation, Style/AccessModifierDeclarations

# File lib/yoshiki/examples.rb, line 12
def example_for_layout_else_alignment
  if example_for_layout_def_end_alignment
    # do_something
    else # rubocop:disable Layout/ElseAlignment, Style/EmptyElse
    # do_something_else
  end
end
example_for_layout_end_alignment() click to toggle source
# File lib/yoshiki/examples.rb, line 20
def example_for_layout_end_alignment
  foo = begin
          'foo'
        rescue e
          # do nothing
        end

  "#{ foo } bar"
end

Private Instance Methods

example_for_layout_def_end_alignment() click to toggle source

rubocop:disable Layout/CommentIndentation,Style/AccessModifierDeclarations

# File lib/yoshiki/examples.rb, line 7
def example_for_layout_def_end_alignment
  # this method is *not* empty
end