Sha256: 9ff0f2d4061af1a426cbc741f89e9f274dc2fbfa385e634900fb2de6da340cbe
Contents?: true
Size: 371 Bytes
Versions: 2
Compression:
Stored size: 371 Bytes
Contents
module Shomen module Model require 'shomen/model/method' # class Attribute < Method # def self.type; 'attribute'; end # def initialize(settings={}) super(settings) self['!'] = settings['singleton'] ? 'class-attribute' : 'attribute' end # 'R', 'W' or 'RW' attr_accessor :rw end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shomen-0.1.1 | lib/shomen/model/attribute.rb |
shomen-0.1.0 | lib/shomen/model/attribute.rb |