Class: Fbe::Award::Policy

Inherits:
Object
  • Object
show all
Defined in:
lib/fbe/award.rb

Overview

A policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePolicy

Returns a new instance of Policy.



245
246
247
248
# File 'lib/fbe/award.rb', line 245

def initialize
  @lines = []
  @intro = ''
end

Instance Attribute Details

#varsObject (readonly)

Returns the value of attribute vars.



243
244
245
# File 'lib/fbe/award.rb', line 243

def vars
  @vars
end

Instance Method Details

#intro(text) ⇒ Object



250
251
252
# File 'lib/fbe/award.rb', line 250

def intro(text)
  @intro = text
end

#line(line) ⇒ Object



254
255
256
# File 'lib/fbe/award.rb', line 254

def line(line)
  @lines << line
end

#markdownObject



258
259
260
# File 'lib/fbe/award.rb', line 258

def markdown
  "#{@intro}. Here it how it's calculated: First, #{@lines.join('. Then, ')}."
end