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.
261 262 263 |
# File 'lib/active_mocker/model_schema.rb', line 261 def initialize(arguments) @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
259 260 261 |
# File 'lib/active_mocker/model_schema.rb', line 259 def arguments @arguments end |
Instance Method Details
#empty? ⇒ Boolean
269 270 271 |
# File 'lib/active_mocker/model_schema.rb', line 269 def empty? @arguments.empty? end |
#passable ⇒ Object
277 278 279 |
# File 'lib/active_mocker/model_schema.rb', line 277 def passable Reparameterize.call(arguments, param_list: true) end |
#to_hash ⇒ Object
265 266 267 |
# File 'lib/active_mocker/model_schema.rb', line 265 def to_hash @arguments end |
#to_s ⇒ Object
273 274 275 |
# File 'lib/active_mocker/model_schema.rb', line 273 def to_s Reparameterize.call(arguments) end |