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

#abstractObject



14
15
16
# File 'lib/texas/template/helper/info.rb', line 14

def abstract
  info.abstract.strip
end

#infoObject



10
11
12
# File 'lib/texas/template/helper/info.rb', line 10

def info
  @info ||= OpenStruct.new(:abstract => "", :summary => "")
end

#marked_for_rewrite?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/texas/template/helper/info.rb', line 22

def marked_for_rewrite?
  !!info.write_at_end_of_build
end

#summaryObject



18
19
20
# File 'lib/texas/template/helper/info.rb', line 18

def summary
  info.summary.strip
end