Class: Usher::Route::Util::Group

Inherits:
Array
  • Object
show all
Defined in:
lib/usher/route/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

Returns the value of attribute group_type.



7
8
9
# File 'lib/usher/route/util.rb', line 7

def group_type
  @group_type
end

#parentObject

Returns the value of attribute parent.



8
9
10
# File 'lib/usher/route/util.rb', line 8

def parent
  @parent
end

Instance Method Details

#inspectObject



10
11
12
# File 'lib/usher/route/util.rb', line 10

def inspect
  "#{group_type}->#{super}"
end