Class: ImportManager

Inherits:
Object
  • Object
show all
Defined in:
lib/vraptor-scaffold/generators/scaffold/import_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ ImportManager

Returns a new instance of ImportManager



5
6
7
8
# File 'lib/vraptor-scaffold/generators/scaffold/import_manager.rb', line 5

def initialize(type)
  @type = type
  packages
end

Instance Attribute Details

#typeObject

Returns the value of attribute type



3
4
5
# File 'lib/vraptor-scaffold/generators/scaffold/import_manager.rb', line 3

def type
  @type
end

Instance Method Details

#packageObject



10
11
12
# File 'lib/vraptor-scaffold/generators/scaffold/import_manager.rb', line 10

def package
  packages[type.to_sym] or []
end

#packagesObject



14
15
16
17
18
# File 'lib/vraptor-scaffold/generators/scaffold/import_manager.rb', line 14

def packages
  {
    :date => ["java.util.Date"],
  }
end