mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-29 23:37:41 +00:00
32 lines
407 B
Ruby
32 lines
407 B
Ruby
module Labels
|
|
attr_reader :module_label
|
|
end
|
|
|
|
class Base
|
|
attr_accessor :inherited
|
|
|
|
def slot
|
|
1
|
|
end
|
|
end
|
|
|
|
class Child < Base
|
|
include Labels
|
|
attr_accessor :name, :slot
|
|
attr_writer :write_only
|
|
|
|
class << self
|
|
attr_reader :class_name
|
|
end
|
|
|
|
def instance_access
|
|
self.name
|
|
self.inherited
|
|
self.class_name
|
|
end
|
|
|
|
def self.class_access
|
|
self.class_name
|
|
self.name
|
|
end
|
|
end
|