module Tapestry::Interface::Page::Attribute
Public Instance Methods
title_attribute()
click to toggle source
# File lib/tapestry/attribute.rb, line 34 def title_attribute @title end
title_is(title = nil)
click to toggle source
# File lib/tapestry/attribute.rb, line 21 def title_is(title = nil) title_is_empty if title.nil? || title.empty? @title = title end
url_attribute()
click to toggle source
# File lib/tapestry/attribute.rb, line 26 def url_attribute @url end
url_is(url = nil)
click to toggle source
# File lib/tapestry/attribute.rb, line 9 def url_is(url = nil) url_is_empty if url.nil? && url_attribute.nil? url_is_empty if url.nil? || url.empty? @url = url end
url_match_attribute()
click to toggle source
# File lib/tapestry/attribute.rb, line 30 def url_match_attribute @url_match end
url_matches(pattern = nil)
click to toggle source
# File lib/tapestry/attribute.rb, line 15 def url_matches(pattern = nil) url_match_is_empty if pattern.nil? url_match_is_empty if pattern.is_a?(String) && pattern.empty? @url_match = pattern end