Class: Swift::Gist::SwiftModule
- Inherits:
-
Object
- Object
- Swift::Gist::SwiftModule
- Defined in:
- lib/swift/gist/swift_module.rb
Instance Attribute Summary collapse
-
#depends_on ⇒ Object
Returns the value of attribute depends_on.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sources ⇒ Object
Returns the value of attribute sources.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, sources, depends_on = []) ⇒ SwiftModule
constructor
A new instance of SwiftModule.
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_on ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/swift/gist/swift_module.rb', line 4 def name @name end |
#sources ⇒ Object
Returns the value of attribute sources.
4 5 6 |
# File 'lib/swift/gist/swift_module.rb', line 4 def sources @sources end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/swift/gist/swift_module.rb', line 4 def type @type end |