Class: Jcsv::RBConvertNilTo
Overview
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes included from NextFilter
Instance Method Summary collapse
- #execute(value, context) ⇒ Object
-
#initialize(value) ⇒ RBConvertNilTo
constructor
A new instance of RBConvertNilTo.
Methods included from NextFilter
Constructor Details
#initialize(value) ⇒ RBConvertNilTo
141 142 143 144 |
# File 'lib/filters.rb', line 141 def initialize(value) @value = value super() end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
139 140 141 |
# File 'lib/filters.rb', line 139 def value @value end |
Instance Method Details
#execute(value, context) ⇒ Object
146 147 148 149 |
# File 'lib/filters.rb', line 146 def execute(value, context) val = (value)? value : @value exec_next(val, context) end |