Class: RailsDataExplorer::Utils::RdeTableCell
- Inherits:
-
Object
- Object
- RailsDataExplorer::Utils::RdeTableCell
- Defined in:
- lib/rails-data-explorer/utils/rde_table.rb
Instance Attribute Summary collapse
-
#css_class ⇒ Object
Returns the value of attribute css_class.
-
#ruby_formatter ⇒ Object
Returns the value of attribute ruby_formatter.
-
#style ⇒ Object
Returns the value of attribute style.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#title ⇒ Object
Returns the value of attribute title.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(tag, value, opts = {}) ⇒ RdeTableCell
constructor
A new instance of RdeTableCell.
Constructor Details
#initialize(tag, value, opts = {}) ⇒ RdeTableCell
Returns a new instance of RdeTableCell.
50 51 52 53 54 55 56 57 |
# File 'lib/rails-data-explorer/utils/rde_table.rb', line 50 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_class ⇒ Object
Returns the value of attribute css_class.
45 46 47 |
# File 'lib/rails-data-explorer/utils/rde_table.rb', line 45 def css_class @css_class end |
#ruby_formatter ⇒ Object
Returns the value of attribute ruby_formatter.
46 47 48 |
# File 'lib/rails-data-explorer/utils/rde_table.rb', line 46 def ruby_formatter @ruby_formatter end |
#style ⇒ Object
Returns the value of attribute style.
47 48 49 |
# File 'lib/rails-data-explorer/utils/rde_table.rb', line 47 def style @style end |
#tag ⇒ Object
Returns the value of attribute tag.
43 44 45 |
# File 'lib/rails-data-explorer/utils/rde_table.rb', line 43 def tag @tag end |
#title ⇒ Object
Returns the value of attribute title.
48 49 50 |
# File 'lib/rails-data-explorer/utils/rde_table.rb', line 48 def title @title end |
#value ⇒ Object
Returns the value of attribute value.
44 45 46 |
# File 'lib/rails-data-explorer/utils/rde_table.rb', line 44 def value @value end |