Class: Jets::Stack::Depends::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/stack/depends/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options={})
  @stack = stack # should be underscore format. IE: admin/posts_controller
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



12
13
14
# File 'lib/jets/stack/depends/item.rb', line 12

def options
  @options
end

#stackObject (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_nameObject



22
23
24
# File 'lib/jets/stack/depends/item.rb', line 22

def class_name
  @stack.to_s.camelize
end

#logical_idObject



18
19
20
# File 'lib/jets/stack/depends/item.rb', line 18

def logical_id
  @stack.to_s.gsub('::','').gsub('/','_').camelize
end