Class: Responding
- Inherits:
-
Object
- Object
- Responding
- Defined in:
- lib/responding.rb,
lib/responding/version.rb
Defined Under Namespace
Classes: Class
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.new(*attributes) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/responding.rb', line 4 def self.new(*attributes) raise ArgumentError.new('At least one attribute required') if attributes.empty? ::Class.new(Class) do attributes.each do |attribute| define_attribute attribute end end end |