Class: Trailblazer::Cell

Inherits:
Object
  • Object
show all
Includes:
Cell::Erb
Defined in:
lib/caco.rb

Instance Method Summary collapse

Instance Method Details

#property(key) ⇒ Object



93
94
95
96
97
# File 'lib/caco.rb', line 93

def property(key)
  return nil if model.nil?
  return nil unless model.has_key?(key) and model.is_a?(Hash)
  return model[key]
end