class Guevara::Row
Attributes
attributes[R]
Public Class Methods
new(attributes)
click to toggle source
# File lib/guevara/row.rb, line 6 def initialize attributes self.attributes = attributes format_attributes end
Public Instance Methods
attributes=(attr)
click to toggle source
# File lib/guevara/row.rb, line 11 def attributes= attr @attributes = default_attributes.merge(attr) end
default_attributes()
click to toggle source
# File lib/guevara/row.rb, line 18 def default_attributes {} end
format_attributes()
click to toggle source
# File lib/guevara/row.rb, line 15 def format_attributes end
to_s()
click to toggle source
# File lib/guevara/row.rb, line 22 def to_s format(fields.join, attributes) << "\n" end