Sha256: 220cca0fcc1f1ec82318d45e27ce7aeb624d6db70d79b6ff7771fd8b7f0f2bde
Contents?: true
Size: 507 Bytes
Versions: 3
Compression:
Stored size: 507 Bytes
Contents
require 'active_support/concern' module Ripple module AttributeMethods module Read extend ActiveSupport::Concern if ActiveSupport::VERSION::STRING < '3.2' included do attribute_method_suffix '' end end def [](attr_name) attribute(attr_name) end private def attribute(attr_name) if @attributes.include?(attr_name) @attributes[attr_name] else nil end end end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
wyngle-ripple-0.1.0 | lib/ripple/attribute_methods/read.rb |
better-ripple-1.0.0 | lib/ripple/attribute_methods/read.rb |
ripple-1.0.0.beta2 | lib/ripple/attribute_methods/read.rb |