Module: ExtendIt::DslModule

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.incuded(base) ⇒ Object



197
198
199
# File 'lib/extend_it/dsl.rb', line 197

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

Instance Method Details

#dsl(&block) ⇒ Object



233
234
235
# File 'lib/extend_it/dsl.rb', line 233

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

#extended(&block) ⇒ Object



229
230
231
# File 'lib/extend_it/dsl.rb', line 229

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

#included(&block) ⇒ Object



225
226
227
# File 'lib/extend_it/dsl.rb', line 225

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