Module: Texas::Template::Helper::Info
- Included in:
- Runner::Base
- Defined in:
- lib/texas/template/helper/info.rb
Overview
Helper methods for describing templates via an info object
Instance Method Summary collapse
Instance Method Details
#abstract ⇒ Object
14 15 16 |
# File 'lib/texas/template/helper/info.rb', line 14 def abstract info.abstract.strip end |
#info ⇒ Object
10 11 12 |
# File 'lib/texas/template/helper/info.rb', line 10 def info @info ||= OpenStruct.new(:abstract => "", :summary => "") end |
#marked_for_rewrite? ⇒ Boolean
22 23 24 |
# File 'lib/texas/template/helper/info.rb', line 22 def marked_for_rewrite? !!info.write_at_end_of_build end |
#summary ⇒ Object
18 19 20 |
# File 'lib/texas/template/helper/info.rb', line 18 def summary info.summary.strip end |