Class: Rbind::RGetter
- Inherits:
-
ROperation
- Object
- RBase
- ROperation
- Rbind::RGetter
- Defined in:
- lib/rbind/core/rgetter.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
Attributes inherited from ROperation
#ambiguous_name, #base_class, #blocking, #cparameters, #cplusplus_alias, #index, #parameters, #return_type, #static
Attributes included from Logger
Attributes inherited from RBase
#alias, #auto_alias, #cname, #csignature, #doc, #extern_package_name, #ignore, #name, #namespace, #owner, #version
Instance Method Summary collapse
- #attribute? ⇒ Boolean
-
#initialize(attr) ⇒ RGetter
constructor
A new instance of RGetter.
- #signature ⇒ Object
Methods inherited from ROperation
#==, #abstract?, #add_parameter, #ambiguous_name?, #blocking?, #constructor?, #cplusplus_alias?, #generate_doc, #generate_signatures, #inherit?, #instance_method?, #operator, #operator?, #owner=, #parameter, #pretty_print, #static?, #to_static
Methods included from Logger
Methods inherited from RBase
basename, #binding, #delete!, #doc?, #extern?, #full_name, #generate_signatures, #ignore?, #map_to_namespace, namespace, #namespace?, normalize, #overwrite_c, #overwrite_ruby, #pretty_print, #rename, #specialize_ruby, split_name, to_cname, #to_s
Constructor Details
#initialize(attr) ⇒ RGetter
Returns a new instance of RGetter.
6 7 8 9 |
# File 'lib/rbind/core/rgetter.rb', line 6 def initialize(attr) @attribute = attr super("get_#{attr.name}",attr.type.to_const) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
4 5 6 |
# File 'lib/rbind/core/rgetter.rb', line 4 def attribute @attribute end |
Instance Method Details
#attribute? ⇒ Boolean
11 12 13 |
# File 'lib/rbind/core/rgetter.rb', line 11 def attribute? true end |
#signature ⇒ Object
15 16 17 |
# File 'lib/rbind/core/rgetter.rb', line 15 def signature attribute.signature end |