Sha256: 4917648b59e29b0926ad09997712fc0845de7ad56d2c7ef9e5a69a686cda1b5d
Contents?: true
Size: 482 Bytes
Versions: 111
Compression:
Stored size: 482 Bytes
Contents
module Scrivito class ObjDataFromHash < ObjData def initialize(attributes) @attributes = attributes.stringify_keys end def raw_value_and_type_of(attribute_name) if attribute_data = @attributes[attribute_name] if attribute_name.starts_with?('_') [attribute_data, nil] else attribute_data.reverse end else [nil, nil] end end def attribute_names @attributes.keys end def to_h @attributes end end end
Version data entries
111 entries across 111 versions & 1 rubygems