module Tapestry::Ready::ReadyAttributes
The ReadyAttributes
contains methods that can be called directly on the interface class definition. These are very much like the attributes that are used for defining aspects of the pages, such as `url_is` or `title_is`. These attributes are included separately so as to maintain more modularity.
Public Instance Methods
page_ready(&block)
click to toggle source
When this attribute method is specified on an interface, it will append the validation provided by the block.
# File lib/tapestry/ready.rb, line 26 def page_ready(&block) _ready_validations << block end
Also aliased as: page_ready_when
ready_validations()
click to toggle source
This method will provide a list of the ready_validations
that have been defined. This list will contain the list in the order that the validations were defined in.
# File lib/tapestry/ready.rb, line 16 def ready_validations if superclass.respond_to?(:ready_validations) superclass.ready_validations + _ready_validations else _ready_validations end end
Private Instance Methods
_ready_validations()
click to toggle source
# File lib/tapestry/ready.rb, line 34 def _ready_validations @_ready_validations ||= [] end