Class: NOMS::Command::Document
- Inherits:
-
Object
- Object
- NOMS::Command::Document
- Defined in:
- lib/noms/command/document.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
Returns the value of attribute argv.
-
#exitcode ⇒ Object
Returns the value of attribute exitcode.
Instance Method Summary collapse
-
#body ⇒ Object
Make these synonymous with the keys.
- #body=(rval) ⇒ Object
-
#initialize(doc) ⇒ Document
constructor
A new instance of Document.
- #script ⇒ Object
- #script=(rval) ⇒ Object
Constructor Details
Instance Attribute Details
#argv ⇒ Object
Returns the value of attribute argv.
15 16 17 |
# File 'lib/noms/command/document.rb', line 15 def argv @argv end |
#exitcode ⇒ Object
Returns the value of attribute exitcode.
15 16 17 |
# File 'lib/noms/command/document.rb', line 15 def exitcode @exitcode end |
Instance Method Details
#body ⇒ Object
Make these synonymous with the keys
24 25 26 |
# File 'lib/noms/command/document.rb', line 24 def body @doc['$body'] end |
#body=(rval) ⇒ Object
28 29 30 |
# File 'lib/noms/command/document.rb', line 28 def body=(rval) @doc['$body'] = rval end |
#script ⇒ Object
32 33 34 |
# File 'lib/noms/command/document.rb', line 32 def script @doc['$script'] end |
#script=(rval) ⇒ Object
36 37 38 |
# File 'lib/noms/command/document.rb', line 36 def script=(rval) @doc['$script'] = rval end |