Class: Ppson::ArgumentsDecorator
- Inherits:
-
Object
- Object
- Ppson::ArgumentsDecorator
- Defined in:
- lib/ppjson/arguments_decorator.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #decorate ⇒ Object
-
#initialize(arguments, options) ⇒ ArgumentsDecorator
constructor
A new instance of ArgumentsDecorator.
Constructor Details
#initialize(arguments, options) ⇒ ArgumentsDecorator
Returns a new instance of ArgumentsDecorator.
5 6 7 8 |
# File 'lib/ppjson/arguments_decorator.rb', line 5 def initialize(arguments, ) @arguments = arguments = end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/ppjson/arguments_decorator.rb', line 3 def arguments @arguments end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/ppjson/arguments_decorator.rb', line 3 def end |
Instance Method Details
#decorate ⇒ Object
10 11 12 |
# File 'lib/ppjson/arguments_decorator.rb', line 10 def decorate [:file] ? file_arguments : json_arguments end |