Module: Cream::View::Host

Defined in:
lib/cream/view/host_area.rb

Instance Method Summary collapse

Instance Method Details

#for_localhost {|block| ... } ⇒ Object

Yields:

  • (block)


3
4
5
# File 'lib/cream/view/host_area.rb', line 3

def for_localhost(&block)
  yield block if localhost?
end

#for_public {|block| ... } ⇒ Object

Yields:

  • (block)


11
12
13
14
# File 'lib/cream/view/host_area.rb', line 11

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

#not_for_localhost {|block| ... } ⇒ Object

Yields:

  • (block)


7
8
9
# File 'lib/cream/view/host_area.rb', line 7

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

#not_for_public {|block| ... } ⇒ Object

Yields:

  • (block)


16
17
18
19
# File 'lib/cream/view/host_area.rb', line 16

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