Class: MessagePack::IDL::IR::Application
- Inherits:
-
Object
- Object
- MessagePack::IDL::IR::Application
- Defined in:
- lib/msgpack/idl/ir.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
- #default_scope ⇒ Object
-
#initialize(name, scopes) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(name, scopes) ⇒ Application
Returns a new instance of Application.
400 401 402 403 |
# File 'lib/msgpack/idl/ir.rb', line 400 def initialize(name, scopes) @name = name @scopes = scopes end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
404 405 406 |
# File 'lib/msgpack/idl/ir.rb', line 404 def name @name end |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
404 405 406 |
# File 'lib/msgpack/idl/ir.rb', line 404 def scopes @scopes end |
Instance Method Details
#default_scope ⇒ Object
406 407 408 |
# File 'lib/msgpack/idl/ir.rb', line 406 def default_scope @scopes.find {|c| c.default_scope? } end |