Class: ARST::Node::Class
- Includes:
- Namable
- Defined in:
- lib/arst/node/class.rb
Instance Attribute Summary collapse
-
#superclass ⇒ Object
Returns the value of attribute superclass.
Attributes included from Namable
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Class
constructor
A new instance of Class.
- #superclass? ⇒ Boolean
Methods included from Namable
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Class
Returns a new instance of Class.
13 14 15 16 17 18 |
# File 'lib/arst/node/class.rb', line 13 def initialize(={}) super() # TODO: Validate keys self.superclass = [:superclass] end |
Instance Attribute Details
#superclass ⇒ Object
Returns the value of attribute superclass.
11 12 13 |
# File 'lib/arst/node/class.rb', line 11 def superclass @superclass end |
Instance Method Details
#superclass? ⇒ Boolean
25 26 27 |
# File 'lib/arst/node/class.rb', line 25 def superclass? !superclass.nil? end |