Module: ExtendIt::DslModule

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.incuded(base) ⇒ Object



213
214
215
# File 'lib/extend_it/dsl.rb', line 213

def self.incuded(base)
  fail RuntimeError, 'DslModule can be only extended by other modules'
end

Instance Method Details

#dsl(&block) ⇒ Object



249
250
251
# File 'lib/extend_it/dsl.rb', line 249

def dsl(&block)
  (@dsl ||= []) << block if block_given?
end

#extended(&block) ⇒ Object



245
246
247
# File 'lib/extend_it/dsl.rb', line 245

def extended(&block)
  (@extended ||= []) << block if block_given?
end

#included(&block) ⇒ Object



241
242
243
# File 'lib/extend_it/dsl.rb', line 241

def included(&block)
  (@included ||= []) << block if block_given?
end