Class: APIGatewayDSL::Context
- Inherits:
-
Object
- Object
- APIGatewayDSL::Context
- Defined in:
- lib/api_gateway_dsl/context.rb
Instance Attribute Summary collapse
-
#current_dir ⇒ Object
Allows to change the current directory before loading another Ruby file, so that it is possible to use relative file names (e.g. to JSON schemata) within the DSL.
-
#default_body_file ⇒ Object
Allows to change the current directory before loading another Ruby file, so that it is possible to use relative file names (e.g. to JSON schemata) within the DSL.
Instance Method Summary collapse
-
#initialize(current_dir = nil) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(current_dir = nil) ⇒ Context
Returns a new instance of Context.
8 9 10 |
# File 'lib/api_gateway_dsl/context.rb', line 8 def initialize(current_dir = nil) @current_dir = current_dir end |
Instance Attribute Details
#current_dir ⇒ Object
Allows to change the current directory before loading another Ruby file, so that it is possible to use relative file names (e.g. to JSON schemata) within the DSL.
6 7 8 |
# File 'lib/api_gateway_dsl/context.rb', line 6 def current_dir @current_dir end |
#default_body_file ⇒ Object
Allows to change the current directory before loading another Ruby file, so that it is possible to use relative file names (e.g. to JSON schemata) within the DSL.
6 7 8 |
# File 'lib/api_gateway_dsl/context.rb', line 6 def default_body_file @default_body_file end |