Class: RailsDataExplorer::Utils::RdeTableCell

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_data_explorer/utils/rde_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, value, opts = {}) ⇒ RdeTableCell

Returns a new instance of RdeTableCell.



53
54
55
56
57
58
59
60
# File 'lib/rails_data_explorer/utils/rde_table.rb', line 53

def initialize(tag, value, opts = {})
  @tag = tag
  @value = value
  @css_class = opts[:css_class]
  @ruby_formatter = opts[:ruby_formatter]
  @style = opts[:style]
  @title = opts[:title]
end

Instance Attribute Details

#css_classObject

Returns the value of attribute css_class.



48
49
50
# File 'lib/rails_data_explorer/utils/rde_table.rb', line 48

def css_class
  @css_class
end

#ruby_formatterObject

Returns the value of attribute ruby_formatter.



49
50
51
# File 'lib/rails_data_explorer/utils/rde_table.rb', line 49

def ruby_formatter
  @ruby_formatter
end

#styleObject

Returns the value of attribute style.



50
51
52
# File 'lib/rails_data_explorer/utils/rde_table.rb', line 50

def style
  @style
end

#tagObject

Returns the value of attribute tag.



46
47
48
# File 'lib/rails_data_explorer/utils/rde_table.rb', line 46

def tag
  @tag
end

#titleObject

Returns the value of attribute title.



51
52
53
# File 'lib/rails_data_explorer/utils/rde_table.rb', line 51

def title
  @title
end

#valueObject

Returns the value of attribute value.



47
48
49
# File 'lib/rails_data_explorer/utils/rde_table.rb', line 47

def value
  @value
end