Class: Sfp::Visitor::NullModifier
- Inherits:
-
Object
- Object
- Sfp::Visitor::NullModifier
- Defined in:
- lib/sfp/visitors.rb
Instance Method Summary collapse
Instance Method Details
#visit(name, value, parent) ⇒ Object
121 122 123 124 125 126 127 128 129 |
# File 'lib/sfp/visitors.rb', line 121 def visit(name, value, parent) return false if value.is_a?(Hash) and value.isprocedure if value.is_a?(Hash) and value.isnull parent[name] = nil return false end true end |