Class: Gena::Filetype::Context

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target, base_dir, is_resource) ⇒ Context

Returns a new instance of Context.



7
8
9
10
11
# File 'lib/codegen/codegen.rb', line 7

def initialize(target, base_dir, is_resource)
  @target_key = target
  @base_dir_key = base_dir
  @is_resource = is_resource
end

Instance Attribute Details

#base_dir_keyObject

Returns the value of attribute base_dir_key.



5
6
7
# File 'lib/codegen/codegen.rb', line 5

def base_dir_key
  @base_dir_key
end

#is_resourceObject

Returns the value of attribute is_resource.



5
6
7
# File 'lib/codegen/codegen.rb', line 5

def is_resource
  @is_resource
end

#target_keyObject

Returns the value of attribute target_key.



5
6
7
# File 'lib/codegen/codegen.rb', line 5

def target_key
  @target_key
end