Class: Rules

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-zen/rules.rb

Instance Method Summary collapse

Constructor Details

#initialize(application) ⇒ Rules

Returns a new instance of Rules.



6
7
8
# File 'lib/ruby-zen/rules.rb', line 6

def initialize(application)
  @app = application
end

Instance Method Details

#show(options = { 'full' => false, 'step' => true }) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/ruby-zen/rules.rb', line 10

def show(options = { 'full' => false, 'step' => true })
  full = options['full']
  step = options['step']

  full = true if step
  if full
    show_full(step: step)
  else
    show_only_names
  end
end