Sha256: 0f622bd9639301d1e1f9b0deb2b0d4cf7fd13b1f2efdb5fd29d8577e15f0b562

Contents?: true

Size: 1.29 KB

Versions: 9

Compression:

Stored size: 1.29 KB

Contents

require 'nano/object/meta'

#--
# This is one of the very few files in nano that contains
# more than one method. The related files are actually just
# stubs doe this. This is not generally done, but in this
# case it becomes appropriate b/c of the quanitity of methods
# involved --it borders on becomeing a Mega Module.
#++

require 'nano/module/attr_setter'
require 'nano/module/attr_checker'

class Module

  public :attr, :attr_reader, :attr_writter, :attr_accessor

#   # Shortcuts for creating class instance attributes.
#   #
#   # Concerning the naming of these emthods, since the letter 'c'
#   # has become the convention for class variable attributes (ie. @@v),
#   # the letter 's' was chosen and stands for 'self' or 'singleton'.
#   #
#   def sattr(*args)
#     class << self
#       attr(*args)
#     end
#   end
# 
#   def sattr_reader(*args)
#     class << self
#       attr_reader(*args)
#     end
#   end
# 
#   def sattr_writer(*args)
#     class << self
#       attr_writer(*args)
#     end
#   end
# 
#   def sattr_accessor(*args)
#     class << self
#       attr_accessor(*args)
#     end
#   end
# 
#   def sattr_setter(*args)
#     class << self
#       attr_setter(*args)
#     end
#   end
# 
#   def sattr_tester(*args)
#     class << self
#       attr_tester(*args)
#     end
#   end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
facets-1.4.1 forge/core/module/meta_attr.rb
facets-1.4.2 forge/core/module/meta_attr.rb
facets-1.4.3 forge/core/module/meta_attr.rb
facets-1.4.5 snip/core/module/meta_attr.rb
facets-1.4.4 forge/core/module/meta_attr.rb
facets-1.8.49 work/core/module/meta_attr.rb
facets-1.8.0 work/core/module/meta_attr.rb
facets-1.8.20 work/core/module/meta_attr.rb
facets-1.8.8 work/core/module/meta_attr.rb