Class: NodeDef
- Defined in:
- lib/runtime.rb,
lib/generators/elixir_server_generator.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
Attributes inherited from Def
Instance Method Summary collapse
- #elixir_behaviour ⇒ Object
- #elixir_connection ⇒ Object
- #elixir_name ⇒ Object
-
#initialize(ast) ⇒ NodeDef
constructor
A new instance of NodeDef.
Constructor Details
#initialize(ast) ⇒ NodeDef
Returns a new instance of NodeDef.
58 59 60 61 62 63 64 65 |
# File 'lib/runtime.rb', line 58 def initialize ast super ast @name = ast.name @language = ast.language @nickname = ast.nickname @namespace = ast.namespace @doc = ast.doc end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
56 57 58 |
# File 'lib/runtime.rb', line 56 def doc @doc end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
56 57 58 |
# File 'lib/runtime.rb', line 56 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
56 57 58 |
# File 'lib/runtime.rb', line 56 def name @name end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
56 57 58 |
# File 'lib/runtime.rb', line 56 def namespace @namespace end |
#nickname ⇒ Object (readonly)
Returns the value of attribute nickname.
56 57 58 |
# File 'lib/runtime.rb', line 56 def nickname @nickname end |
Instance Method Details
#elixir_behaviour ⇒ Object
413 414 415 |
# File 'lib/generators/elixir_server_generator.rb', line 413 def elixir_behaviour @name + 'Behaviour' end |
#elixir_connection ⇒ Object
409 410 411 |
# File 'lib/generators/elixir_server_generator.rb', line 409 def elixir_connection @name + 'Connection' end |
#elixir_name ⇒ Object
405 406 407 |
# File 'lib/generators/elixir_server_generator.rb', line 405 def elixir_name @name.underscore end |