Class: Whatever
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.
184 185 186 187 |
# File 'lib/gorillib/factories.rb', line 184 def initialize(={}) .slice!(:convert, :blankish) super() end |
Class Method Details
.receive(obj) ⇒ Object
191 192 193 |
# File 'lib/gorillib/factories.rb', line 191 def self.receive(obj) obj end |
Instance Method Details
#blankish?(obj) ⇒ Boolean
189 |
# File 'lib/gorillib/factories.rb', line 189 def blankish?(obj) false ; end |
#native?(obj) ⇒ Boolean
188 |
# File 'lib/gorillib/factories.rb', line 188 def native?(obj) true ; end |
#receive(obj) ⇒ Object
190 |
# File 'lib/gorillib/factories.rb', line 190 def receive(obj) obj ; end |