Class: Jisota::Package

Inherits:
Object
  • Object
show all
Defined in:
lib/jisota/package.rb

Defined Under Namespace

Classes: DSL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, &block) ⇒ Package

Returns a new instance of Package.



5
6
7
8
9
# File 'lib/jisota/package.rb', line 5

def initialize(name = nil, &block)
  @params = []
  @name = name
  DSL.new(self).instance_eval(&block) if block_given?
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/jisota/package.rb', line 3

def description
  @description
end

#nameObject Also known as: key

Returns the value of attribute name.



3
4
5
# File 'lib/jisota/package.rb', line 3

def name
  @name
end

#paramsObject

Returns the value of attribute params.



3
4
5
# File 'lib/jisota/package.rb', line 3

def params
  @params
end

#run_blockObject

Returns the value of attribute run_block.



3
4
5
# File 'lib/jisota/package.rb', line 3

def run_block
  @run_block
end

#verify_blockObject

Returns the value of attribute verify_block.



3
4
5
# File 'lib/jisota/package.rb', line 3

def verify_block
  @verify_block
end