Class: Tengine::Support::Config::Definition::Group

Inherits:
Object
  • Object
show all
Includes:
HasManyChildren
Defined in:
lib/tengine/support/config/definition/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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__, options)
  @__name__ = __name__
  @options = 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

Returns:

  • (Boolean)


18
19
20
# File 'lib/tengine/support/config/definition/group.rb', line 18

def hidden?
  !!@options[:hidden]
end

#rootObject



14
15
16
# File 'lib/tengine/support/config/definition/group.rb', line 14

def root
  __parent__.root
end