Sha256: 66765b1184f905336de25a5bd3630a77e4a367a9c3961b5f68b5ee9f897bdb76

Contents?: true

Size: 439 Bytes

Versions: 5

Compression:

Stored size: 439 Bytes

Contents

module Cream::View
  module Host
    def for_localhost(&block)
      yield block if localhost?
    end  

    def not_for_localhost(&block)
      yield block if !localhost?
    end  

    def for_public(&block)
      # with_output_buffer(&block) if publichost?
      yield block if publichost?
    end  

    def not_for_public(&block)
      # with_output_buffer(&block) if publichost?
      yield block if !publichost?
    end  
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cream-0.9.2 lib/cream/view/host_area.rb
cream-0.9.1 lib/cream/view/host_area.rb
cream-0.9.0 lib/cream/view/host_area.rb
cream-0.8.9.3 lib/cream/view/host_area.rb
cream-0.8.9.2 lib/cream/view/host_area.rb