Module: Onceler::AmbitiousHelpers

Defined in:
lib/onceler/ambitious_helpers.rb

Instance Method Summary collapse

Instance Method Details

#once_scope?(scope) ⇒ Boolean

make :once the default behavior for before/let/etc.

Returns:

  • (Boolean)


4
5
6
# File 'lib/onceler/ambitious_helpers.rb', line 4

def once_scope?(scope)
  super || scope.nil?
end