Class: Tengine::Support::Config::Definition::Group
- Inherits:
-
Object
- Object
- Tengine::Support::Config::Definition::Group
- Includes:
- HasManyChildren
- Defined in:
- lib/tengine/support/config/definition/group.rb
Instance Attribute Summary collapse
-
#__name__ ⇒ Object
readonly
Returns the value of attribute __name__.
-
#__parent__ ⇒ Object
Returns the value of attribute __parent__.
Instance Method Summary collapse
- #hidden? ⇒ Boolean
-
#initialize(__name__, options) ⇒ Group
constructor
A new instance of Group.
- #root ⇒ Object
Methods included from HasManyChildren
#[], #[]=, #accept_visitor, #action, #action?, #add, #child_by_name, #children, #field, #find, #get_value, #group, #ignore, #load, #load_config, #name_array, #separator, #separator?, #to_hash
Constructor Details
#initialize(__name__, options) ⇒ Group
Returns a new instance of Group.
9 10 11 12 |
# File 'lib/tengine/support/config/definition/group.rb', line 9 def initialize(__name__, ) @__name__ = __name__ @options = end |
Instance Attribute Details
#__name__ ⇒ Object (readonly)
Returns the value of attribute __name__.
6 7 8 |
# File 'lib/tengine/support/config/definition/group.rb', line 6 def __name__ @__name__ end |
#__parent__ ⇒ Object
Returns the value of attribute __parent__.
7 8 9 |
# File 'lib/tengine/support/config/definition/group.rb', line 7 def __parent__ @__parent__ end |
Instance Method Details
#hidden? ⇒ Boolean
18 19 20 |
# File 'lib/tengine/support/config/definition/group.rb', line 18 def hidden? !!@options[:hidden] end |
#root ⇒ Object
14 15 16 |
# File 'lib/tengine/support/config/definition/group.rb', line 14 def root __parent__.root end |