[ruby-gnome2-doc-cvs] [Hiki] update - Gnome::PrintUnit

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2004年 10月 16日 (土) 15:17:02 JST


-------------------------
REMOTE_ADDR = 219.53.36.22
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp//?Gnome%3A%3APrintUnit
-------------------------
  = class Gnome::PrintUnit
  
  == Class Methods
  
  --- get_identify(base)
       * base: a Gnome::PrintUnitBase object.
       * Returns: the identified unit which has ((|base|)), or nil.
  
- --- default()
+ --- default
       * Returns: the default unit, it's Gnome::PrintUnit object.
  
  --- get_by_name(name)
       * name: the name of unit.
       * Returns: specified unit, or nil.
  
  --- get_by_abbreviation(abbreviation)
       * abbreviation: the abbreviation of unit.
       * Returns: specified unit, or nil.
  
  --- get_list(bases)
       * bases: the bases of unit. Base can be composited by
         Gnome::PrintUnitBase#|.
       * Returns: an array of specified units.
  
  == Instance Methods
  
- --- name()
+ --- name
       * Returns: the name of unit.
  
- --- base()
+ --- base
       * Returns: the Gnome::PrintUnitBase of unit.
  
- --- unit_to_base()
+ --- unit_to_base
       * Returns: the value of unit to base.
  
- --- abbr()
+ --- abbr
       * Returns: the abbreviation of unit.
  
- --- plural()
+ --- plural
       * Returns: the plural of unit.
  
- --- abbr_plural()
+ --- abbr_plural
       * Returns: the plural of abbreviation of unit.
  
  --- convert_distance(distance, to)
       * distance: the target distance.
       * to: the unit to convert.
       * Returns: the converted distance, nil on error.
  
  --- convert_distance_full(distance, to, ctm_scale, device_scale)
       * distance: the target distance.
       * to: the unit to convert.
       * ctm_scale: uses device scale when
         ((|self|))/((|to|))'s base is Gnome::PrintUnitBase::USERSPACE.
       * device_scale: uses device scale when
         ((|self|))/((|to|))'s base is Gnome::PrintUnitBase::DEVICE.
       * Returns: the converted distance, nil on errror.
  
  == Constants
  
  --- PS_UNIT
       The unit of PS.
  
  == See Also
  
  Gnome::PrintUnitBase
  
  - kou





ruby-gnome2-cvs メーリングリストの案内
Back to archive index