Class: Jets::Stack::Depends::Item
- Inherits:
-
Object
- Object
- Jets::Stack::Depends::Item
- Defined in:
- lib/jets/stack/depends/item.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
- #class_name ⇒ Object
-
#initialize(stack, options = {}) ⇒ Item
constructor
A new instance of Item.
- #logical_id ⇒ Object
Constructor Details
#initialize(stack, options = {}) ⇒ Item
Returns a new instance of Item.
13 14 15 16 |
# File 'lib/jets/stack/depends/item.rb', line 13 def initialize(stack, ={}) @stack = stack # should be underscore format. IE: admin/posts_controller @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/jets/stack/depends/item.rb', line 12 def @options end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
12 13 14 |
# File 'lib/jets/stack/depends/item.rb', line 12 def stack @stack end |
Instance Method Details
#class_name ⇒ Object
22 23 24 |
# File 'lib/jets/stack/depends/item.rb', line 22 def class_name @stack.to_s.camelize end |
#logical_id ⇒ Object
18 19 20 |
# File 'lib/jets/stack/depends/item.rb', line 18 def logical_id @stack.to_s.gsub('::','').gsub('/','_').camelize end |