Class: Swift::Gist::SwiftModule

Inherits:
Object
  • Object
show all
Defined in:
lib/swift/gist/swift_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, sources, depends_on = []) ⇒ SwiftModule

Returns a new instance of SwiftModule.



6
7
8
# File 'lib/swift/gist/swift_module.rb', line 6

def initialize name, type, sources, depends_on=[]
  @name, @type, @sources, @depends_on = name, type, sources, depends_on
end

Instance Attribute Details

#depends_onObject

Returns the value of attribute depends_on.



4
5
6
# File 'lib/swift/gist/swift_module.rb', line 4

def depends_on
  @depends_on
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/swift/gist/swift_module.rb', line 4

def name
  @name
end

#sourcesObject

Returns the value of attribute sources.



4
5
6
# File 'lib/swift/gist/swift_module.rb', line 4

def sources
  @sources
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/swift/gist/swift_module.rb', line 4

def type
  @type
end