class MemberDef

Attributes

doc[R]
name[R]
type[R]

Public Class Methods

new(ast, type) click to toggle source
Calls superclass method Def::new
# File lib/runtime.rb, line 103
def initialize ast, type
        super ast
        @name = ast.name
        @type = type
        @doc = ast.doc
end

Public Instance Methods

bot_name() click to toggle source
# File lib/generators/bot_generator.rb, line 375
def bot_name
    @name.underscore
end
elixir_name() click to toggle source
# File lib/generators/elixir_server_generator.rb, line 375
def elixir_name
    @name.underscore
end
scala_read() click to toggle source
# File lib/generators/scala_server_generator.rb, line 93
def scala_read
        @type.scala_read true
end
scala_write() click to toggle source
# File lib/generators/scala_server_generator.rb, line 97
def scala_write
        @type.scala_write @name, true
end
unity_def() click to toggle source
# File lib/generators/unity_client_generator.rb, line 128
def unity_def
        "public #{unity_param};"
end
unity_param() click to toggle source
# File lib/generators/unity_client_generator.rb, line 132
def unity_param
        "#{@type.unity} #{@name}"
end
unity_read() click to toggle source
# File lib/generators/unity_client_generator.rb, line 136
def unity_read
        "#{@name} = #{@type.unity_read true};"
end
unity_write() click to toggle source
# File lib/generators/unity_client_generator.rb, line 140
def unity_write
        "#{@type.unity_write @name, true};"
end