Class: Examples

Inherits:
Object
  • Object
show all
Defined in:
lib/yoshiki/examples.rb

Overview

Code here should not cause rubocop to nag

Instance Method Summary collapse

Instance Method Details

#example_for_layout_else_alignmentObject

rubocop:enable Style/AccessModifierDeclarations



10
11
12
13
14
15
16
# File 'lib/yoshiki/examples.rb', line 10

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_alignmentObject



18
19
20
21
22
23
24
25
26
# File 'lib/yoshiki/examples.rb', line 18

def example_for_layout_end_alignment
  foo = begin
          'foo'
        rescue e
          # do nothing
        end

  "#{ foo } bar"
end