Module: Collective::Collector::DSL
- Included in:
- Collective::Collector
- Defined in:
- lib/collective/collector/dsl.rb
Instance Method Summary collapse
Instance Method Details
#collect(&block) ⇒ Object
8 9 10 |
# File 'lib/collective/collector/dsl.rb', line 8 def collect(&block) define_method :collect, &block end |
#requires(libs) ⇒ Object
4 5 6 |
# File 'lib/collective/collector/dsl.rb', line 4 def requires(libs) Array(libs).each { |lib| require lib.to_s } end |
#resolution(resolution = nil) ⇒ Object
12 13 14 15 |
# File 'lib/collective/collector/dsl.rb', line 12 def resolution(resolution = nil) @resolution = resolution if resolution @resolution end |