Class: ActiveMocker::ModelSchema::Methods::Arguments
- Inherits:
-
Object
- Object
- ActiveMocker::ModelSchema::Methods::Arguments
- Defined in:
- lib/active_mocker/model_schema.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(arguments) ⇒ Arguments
constructor
A new instance of Arguments.
- #passable ⇒ Object
- #to_hash ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(arguments) ⇒ Arguments
Returns a new instance of Arguments.
260 261 262 |
# File 'lib/active_mocker/model_schema.rb', line 260 def initialize(arguments) @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
258 259 260 |
# File 'lib/active_mocker/model_schema.rb', line 258 def arguments @arguments end |
Instance Method Details
#empty? ⇒ Boolean
268 269 270 |
# File 'lib/active_mocker/model_schema.rb', line 268 def empty? @arguments.empty? end |
#passable ⇒ Object
276 277 278 |
# File 'lib/active_mocker/model_schema.rb', line 276 def passable Reparameterize.call(arguments, param_list: true) end |
#to_hash ⇒ Object
264 265 266 |
# File 'lib/active_mocker/model_schema.rb', line 264 def to_hash @arguments end |
#to_s ⇒ Object
272 273 274 |
# File 'lib/active_mocker/model_schema.rb', line 272 def to_s Reparameterize.call(arguments) end |