Class: APIGatewayDSL::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/api_gateway_dsl/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dirObject

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_fileObject

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