Class: Gena::Filetype::Context
- Inherits:
-
Object
- Object
- Gena::Filetype::Context
- Defined in:
- lib/codegen/codegen.rb
Instance Attribute Summary collapse
-
#base_dir_key ⇒ Object
Returns the value of attribute base_dir_key.
-
#is_resource ⇒ Object
Returns the value of attribute is_resource.
-
#target_key ⇒ Object
Returns the value of attribute target_key.
Instance Method Summary collapse
-
#initialize(target, base_dir, is_resource) ⇒ Context
constructor
A new instance of Context.
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_key ⇒ Object
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_resource ⇒ Object
Returns the value of attribute is_resource.
5 6 7 |
# File 'lib/codegen/codegen.rb', line 5 def is_resource @is_resource end |
#target_key ⇒ Object
Returns the value of attribute target_key.
5 6 7 |
# File 'lib/codegen/codegen.rb', line 5 def target_key @target_key end |