Class: Creepin::On
- Inherits:
-
Object
- Object
- Creepin::On
- Defined in:
- lib/creepin/on.rb
Instance Method Summary collapse
- #collection(*options, &block) ⇒ Object
-
#initialize(name, &block) ⇒ On
constructor
A new instance of On.
- #resource(*options, &block) ⇒ Object
Constructor Details
#initialize(name, &block) ⇒ On
Returns a new instance of On.
5 6 7 8 9 |
# File 'lib/creepin/on.rb', line 5 def initialize(name, &block) @config = {} @name = name instance_eval(&block) end |
Instance Method Details
#collection(*options, &block) ⇒ Object
11 12 13 |
# File 'lib/creepin/on.rb', line 11 def collection(*, &block) Creepin::Collection.new(@name, *, &block) end |