Class: Semmy::Tasks::Base
- Inherits:
-
Object
- Object
- Semmy::Tasks::Base
- Includes:
- Rake::DSL
- Defined in:
- lib/semmy/tasks/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(config = nil) {|@config| ... } ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config = nil) {|@config| ... } ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 13 |
# File 'lib/semmy/tasks/base.rb', line 8 def initialize(config = nil) @config = config || Configuration.new yield(@config) if block_given? define end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/semmy/tasks/base.rb', line 6 def config @config end |
Instance Method Details
#define ⇒ Object
15 16 |
# File 'lib/semmy/tasks/base.rb', line 15 def define end |