Sha256: 00336ed242a270b2f68f68d086cded96d8e38a2046de2aea81ec0ebac07e2888

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

module Teacup
  module_function

  def dont_restyle
    @dont_restyle ||= nil
  end

  def should_restyle?
    return ! self.dont_restyle
  end

  def should_restyle_and_block
    should_restyle = self.should_restyle?
    @dont_style = true
    return should_restyle
  end

  def should_restyle!
    @dont_style = nil
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
teacup-0.3.12 lib/teacup/restyle.rb
teacup-0.3.11 lib/teacup/restyle.rb