Module: Representable::Render::Nil
- Defined in:
- lib/representable/render/nil.rb,
lib/representable/render/nil/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/representable/render/nil.rb', line 7 def self.included(base) base.class_eval do def initialize(sym, ={}) @name = sym.to_s @options = @options[:default] ||= [] if array? @options[:render_nil] = true if @options[:render_nil].nil? end end end |