Class: Whatever
- Inherits:
-
BaseFactory
- Object
- BaseFactory
- Whatever
- Defined in:
- lib/gorillib/model/factories.rb
Overview
Factory that accepts whatever given and uses it directly – no nothin’
Class Method Summary collapse
Instance Method Summary collapse
- #blankish?(obj) ⇒ Boolean
-
#initialize(options = {}) ⇒ Whatever
constructor
A new instance of Whatever.
- #native?(obj) ⇒ Boolean
- #receive(obj) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Whatever
Returns a new instance of Whatever.
176 177 178 179 |
# File 'lib/gorillib/model/factories.rb', line 176 def initialize(={}) .slice!(:convert, :blankish) super() end |
Class Method Details
.receive(obj) ⇒ Object
183 184 185 |
# File 'lib/gorillib/model/factories.rb', line 183 def self.receive(obj) obj end |
Instance Method Details
#blankish?(obj) ⇒ Boolean
181 |
# File 'lib/gorillib/model/factories.rb', line 181 def blankish?(obj) false ; end |
#native?(obj) ⇒ Boolean
180 |
# File 'lib/gorillib/model/factories.rb', line 180 def native?(obj) true ; end |
#receive(obj) ⇒ Object
182 |
# File 'lib/gorillib/model/factories.rb', line 182 def receive(obj) obj ; end |