Class: Usher::Route::Util::Group
- Inherits:
-
Array
- Object
- Array
- Usher::Route::Util::Group
- Defined in:
- lib/usher/route/util.rb
Instance Attribute Summary collapse
-
#group_type ⇒ Object
Returns the value of attribute group_type.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(group_type, parent) ⇒ Group
constructor
A new instance of Group.
- #inspect ⇒ Object
Constructor Details
#initialize(group_type, parent) ⇒ Group
Returns a new instance of Group.
14 15 16 17 |
# File 'lib/usher/route/util.rb', line 14 def initialize(group_type, parent) @group_type = group_type @parent = parent end |
Instance Attribute Details
#group_type ⇒ Object
Returns the value of attribute group_type.
7 8 9 |
# File 'lib/usher/route/util.rb', line 7 def group_type @group_type end |
#parent ⇒ Object
Returns the value of attribute parent.
8 9 10 |
# File 'lib/usher/route/util.rb', line 8 def parent @parent end |
Instance Method Details
#inspect ⇒ Object
10 11 12 |
# File 'lib/usher/route/util.rb', line 10 def inspect "#{group_type}->#{super}" end |