Class: Pageflow::HelpEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/pageflow/help_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ HelpEntry

Returns a new instance of HelpEntry.



5
6
7
8
9
# File 'lib/pageflow/help_entry.rb', line 5

def initialize(name, options)
  @name = name
  @options = options
  @children = []
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



3
4
5
# File 'lib/pageflow/help_entry.rb', line 3

def children
  @children
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/pageflow/help_entry.rb', line 3

def name
  @name
end

Instance Method Details

#priorityObject



15
16
17
# File 'lib/pageflow/help_entry.rb', line 15

def priority
  @options.fetch(:priority, 10)
end

#translation_keyObject



11
12
13
# File 'lib/pageflow/help_entry.rb', line 11

def translation_key
  name
end