Module: Cream::View::Host
- Defined in:
- lib/cream/view/host_area.rb
Instance Method Summary collapse
- #for_localhost {|block| ... } ⇒ Object
- #for_public {|block| ... } ⇒ Object
- #not_for_localhost {|block| ... } ⇒ Object
- #not_for_public {|block| ... } ⇒ Object
Instance Method Details
#for_localhost {|block| ... } ⇒ Object
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
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
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
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 |