Class: Rules
- Inherits:
-
Object
- Object
- Rules
- Defined in:
- lib/ruby-zen/rules.rb
Instance Method Summary collapse
-
#initialize(application) ⇒ Rules
constructor
A new instance of Rules.
- #show(options = { 'full' => false, 'step' => true }) ⇒ Object
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( = { 'full' => false, 'step' => true }) full = ['full'] step = ['step'] full = true if step if full show_full(step: step) else show_only_names end end |