Class: DLDInternet::Formatters::Awesome

Inherits:
Basic
  • Object
show all
Defined in:
lib/dldinternet/formatters/awesome.rb

Overview

Awesome formatter

Instance Attribute Summary collapse

Attributes inherited from Basic

#columns, #is_a_hash, #options, #widths

Instance Method Summary collapse

Methods inherited from Basic

#header_it, #table_widths

Constructor Details

#initialize(obj, format, options) ⇒ Awesome



14
15
16
# File 'lib/dldinternet/formatters/awesome.rb', line 14

def initialize(obj, format, options)
  super
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



10
11
12
# File 'lib/dldinternet/formatters/awesome.rb', line 10

def format
  @format
end

#objectObject (readonly)

Returns the value of attribute object.



11
12
13
# File 'lib/dldinternet/formatters/awesome.rb', line 11

def object
  @object
end

#titleObject (readonly)

Returns the value of attribute title.



12
13
14
# File 'lib/dldinternet/formatters/awesome.rb', line 12

def title
  @title
end

Instance Method Details

#format_itObject



18
19
20
# File 'lib/dldinternet/formatters/awesome.rb', line 18

def format_it
  object.ai
end