class PinYin::Value

Attributes

english[RW]
english?[RW]

Public Class Methods

new(str, english=true) click to toggle source
Calls superclass method
# File lib/ruby-pinyin/value.rb, line 6
def initialize(str, english=true)
  super(str)
  self.english = english
end

Public Instance Methods

split(*args) click to toggle source
Calls superclass method
# File lib/ruby-pinyin/value.rb, line 11
def split(*args)
  result = super
  result.map {|str| self.class.new(str, english)}
end