Class: RecordViewHelper::Config
- Inherits:
-
Object
- Object
- RecordViewHelper::Config
- Defined in:
- lib/record_view_helper/config.rb
Overview
RecordViewHelper config
Instance Attribute Summary collapse
-
#column_name ⇒ Proc
Proc which returns name for column.
-
#false_view ⇒ String
text/html(raw) which is showed when false === value.
-
#locale_name ⇒ Proc
Proc which returns name for t(name).
-
#locale_namespace ⇒ String
namespace for ‘t()`.
-
#true_view ⇒ String
text/html(raw) which is showed when true === value.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
4 5 6 7 8 |
# File 'lib/record_view_helper/config.rb', line 4 def initialize @true_view = true @false_view = false @locale_namespace = "record_view_helper" end |
Instance Attribute Details
#column_name ⇒ Proc
Proc which returns name for column
61 62 63 |
# File 'lib/record_view_helper/config.rb', line 61 def column_name @column_name end |
#false_view ⇒ String
text/html(raw) which is showed when false === value
16 17 18 |
# File 'lib/record_view_helper/config.rb', line 16 def false_view @false_view end |
#locale_name ⇒ Proc
Proc which returns name for t(name)
33 34 35 |
# File 'lib/record_view_helper/config.rb', line 33 def locale_name @locale_name end |
#locale_namespace ⇒ String
namespace for ‘t()`
44 45 46 |
# File 'lib/record_view_helper/config.rb', line 44 def locale_namespace @locale_namespace end |
#true_view ⇒ String
text/html(raw) which is showed when true === value
12 13 14 |
# File 'lib/record_view_helper/config.rb', line 12 def true_view @true_view end |