Class: Examples
- Inherits:
-
Object
- Object
- Examples
- Defined in:
- lib/yoshiki/examples.rb
Overview
Code here should not cause rubocop to nag
Instance Method Summary collapse
-
#example_for_layout_else_alignment ⇒ Object
rubocop:enable Style/AccessModifierDeclarations.
- #example_for_layout_end_alignment ⇒ Object
Instance Method Details
#example_for_layout_else_alignment ⇒ Object
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_alignment ⇒ Object
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 |