Class: FlutterRb::PlatformPlugin
- Inherits:
-
Object
- Object
- FlutterRb::PlatformPlugin
- Defined in:
- lib/flutter_rb/project/specs/flutter/platform_plugin.rb
Overview
Represents a Flutter platform plugin.
Instance Attribute Summary collapse
-
#package ⇒ String
readonly
Returns the package name of the plugin.
-
#platform ⇒ String
readonly
Returns the platform this plugin is for.
-
#plugin_class ⇒ String
readonly
Returns the class name of the plugin.
Instance Method Summary collapse
-
#initialize(platform, package, plugin_class) ⇒ PlatformPlugin
constructor
Initializes a new instance of PlatformPlugin.
Constructor Details
#initialize(platform, package, plugin_class) ⇒ PlatformPlugin
Initializes a new instance of PlatformPlugin.
11 12 13 14 15 |
# File 'lib/flutter_rb/project/specs/flutter/platform_plugin.rb', line 11 def initialize(platform, package, plugin_class) @platform = platform @package = package @plugin_class = plugin_class end |
Instance Attribute Details
#package ⇒ String (readonly)
Returns the package name of the plugin.
25 26 27 |
# File 'lib/flutter_rb/project/specs/flutter/platform_plugin.rb', line 25 def package @package end |
#platform ⇒ String (readonly)
Returns the platform this plugin is for.
20 21 22 |
# File 'lib/flutter_rb/project/specs/flutter/platform_plugin.rb', line 20 def platform @platform end |
#plugin_class ⇒ String (readonly)
Returns the class name of the plugin.
30 31 32 |
# File 'lib/flutter_rb/project/specs/flutter/platform_plugin.rb', line 30 def plugin_class @plugin_class end |